#define DEFAULT_PORT 9284 /* Very arbitrary */
-#define DEFAULT_KEYS "jkl mspf^l"
+//#define DEFAULT_KEYS "hlkj mspf^l"
+//#define DEFAULT_KEYS "4685 2spf^l"
+#define DEFAULT_KEYS "dcaf b^sp^f^l"
/* Protocol versions */
#define MAJOR_VERSION 1
-#define PROTOCOL_VERSION 3
+#define PROTOCOL_VERSION 4
#define ROBOT_VERSION 1
#define MAX_BOARD_WIDTH 32
E_lostConn, E_robot, E_lostRobot } MyEventType;
typedef enum _NetPacketType { NP_endConn, NP_giveJunk, NP_newPiece,
NP_down, NP_left, NP_right,
- NP_rotate, NP_drop, NP_clear,
+ NP_rotright, NP_rotleft, NP_drop, NP_clear,
NP_insertJunk, NP_startConn,
NP_userName, NP_pause, NP_version,
NP_byeBye } NetPacketType;
} EventGenRec;
typedef struct _Shape {
- struct _Shape *rotateTo;
+ struct _Shape *rotateTo, *rotateFrom;
int initY, initX, mirrored;
Dir initDir;
BlockType type;
EXT GameType game;
EXT int boardHeight[MAX_SCREENS];
EXT int boardVisible[MAX_SCREENS], boardWidth[MAX_SCREENS];
-EXT Shape *curShape[MAX_SCREENS];
+EXT Shape *curShape[MAX_SCREENS], *nextShape[MAX_SCREENS];
EXT int curY[MAX_SCREENS], curX[MAX_SCREENS];
EXT char opponentName[16], opponentHost[256];
EXT int standoutEnable, colorEnable;