Chesteer
Visitor
|
Basic Board Game - Battleships - 2009/10/02 11:15
Hi, I'm newbie, with palabre i begin my adventure with Python (sorry for my language ;) ). I've got a few questions about Palabre.
1st: How can i change problem with "closed room" - I wan't to add user to room (childroom) autimatically. when he log in (if somebody waiting for second player) or create new childroom, if all rooms are closed. Also I base on car game, but I've saw big problem - if a room is closed player can't join, but he can create new childroom with the same name, then he join to this room. How can I fix it?
2nd: Simple Board Game I've got to create this simple game, and what functions i need:
- At start send to server an array like:
| Code: | [0,0,0,0,1,
0,1,0,0,1,
0,1,0,0,1,
0,0,0,0,0,
1,1,1,1,1]
|
where 1 - ship.
- Next i wan't to check player shot like:
and i need to receive something like
| Code: | shooted = true || false
|
- If shooted == true, then the same Player can shoot again, else change player.
- If Player destroyed all opponent ships then send
Can anybody told me how could i do it? I don't expect all sourcecode, I need some tips to start.
Thanks
|