|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[appleeaters]Walk of the board
In fact with the current robotslib.php you can walk of th e board. Any rules for that? Is that allowed?
|
|
#2
|
|||
|
|||
|
[appleeaters]RE: Walk of the board
I meant (oFF the board) as in $player[0] < and $player[1] < 0. The x and y coordinates are thus not in range 0-max_x and 0-max_y.
|
|
#3
|
||||
|
||||
|
[appleeaters]RE: Walk of the board
From the rules:
Quote:
Also from the rules, the game board is from (1,1) to (width, height), inclusive; it is not zero-indexed. |
|
#4
|
|||
|
|||
|
[appleeaters]RE: Walk of the board
If you try to move off the game board, you stay where you are. The library will actually say that you did move, but will then place you back on your original spot.
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [appleeaters]Walk of the board |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|