[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] Entirely new question from the new guy
MakeMove should return a move string, such as
return "1";
"return 0;" is considered an indication that an error occured, but you did
not call Error to send the error message.
~ John Williams
On Wed, 29 Jun 2005, Michael Hammond wrote:
> Hey gang,
>
> Now that my server runs, I'm trying out coding a simple game just to see
> if I can. The code compiles, I can successfully initiate a challenge and
> see the startup boards, but when the first player sends the first move, the
> program returns no output. If the second player tries to send a move, he
> gets a message saying that it's not his turn, and shows the board. Like so:
>
> ---------------------------
> Instructor@Instructor /cygdrive/c/temp
> $ ./tictactoe move 9 test1 test1 1
>
> Instructor@Instructor /cygdrive/c/temp
> $ ./tictactoe move 9 test2 test2 1
> From: Richard's PBeM Server <pbmserv@gamerz.net>
> Message-Id: <pbmserv.1120082477.3784.9@play.gamerz.net>
> To: test1@abacustech.info
> Subject: TicTacToe Board 9 Error
>
> It is not your move
>
> Summary of TicTacToe Board 9
>
> Please start the game test1.
>
> Ohs (o) Eks (x)
> test1 test2
>
>
> . | . | .
> -------------
> . | . | .
> -------------
> . | . | .
>