CMD [PARAMS]\n
- CMD is cmd number (in hex)
- PARAMS depend on the command and are comma separated, i.e
p1,p2,p3,...,pN - Return status' should be
>= 0, even for errors. Status'< 0are reserved for parsing errors.
0x0status (params:0=ok)0x1start new game (params:player_type=<human|ai>)0x2end turn0x3move piece (params:move,<c|p|k|q|e>?,<promo|extra_move|en_passant_capture>?(in LAN format, ex.0x3 e2e4))ccapture, need to move piece atmovefirst (ex.0x3 e2e4,c)ppromotion, need to move piece typepromotomove(ex.0x3 h7h8,p,qpromote to queen)k/qcastling, need to makeextra_moveas well (ex.0x3 e1g1,k,h1f1move rook ath1as well)een passant capture, need to removeen_passant_captureas well (ex.0x3 b4a3,e,a4removea4as well)
0x4user promote0x5calibrate (photon initiated on new game, probably don't need to have user access)0x6end game (photon --> touchscreen, could also be touchscreen --> photon to indicate player wants to leave game)0x7debug commands0x9send log (forward debug messages to photon)0xAend capture/castle0xBsystem reset0xCuser turn ready (indicate to android that user can make moves)
0x8scan for wifi networks (see Austinpayne/photon-chess-client#1)0xDset wifi0xEget best move0xFquery existing games0x10join existing game