my-psb/roboc
Fred Z 30de5f8096 Starts modif gameplay to multiplayer/network mode
I am pausing the devel here, I have to prioritise another project.
Doctests seems to be obsolete for testing network scripts.
I'll be back with Pytest!
2018-03-14 10:40:44 +01:00
..
cartes Updates maps for multiplayer (remove robot letter) 2018-03-14 10:40:44 +01:00
configuration.py Ajusts messages to clients in waiing-room 2018-03-14 10:40:19 +01:00
connectsocket.py Adds data_filter() to sanitize username 2018-03-14 10:40:19 +01:00
map.py Starts modif gameplay to multiplayer/network mode 2018-03-14 10:40:44 +01:00
README.md Update README.md 2018-03-14 10:40:18 +01:00
roboc.py Corrige la syntaxe: audit pyLint 2018-03-14 10:40:17 +01:00
robocclient.py Create client 2018-03-14 10:40:18 +01:00
robocserver.py Starts modif gameplay to multiplayer/network mode 2018-03-14 10:40:44 +01:00
todo.md Starts modif gameplay to multiplayer/network mode 2018-03-14 10:40:44 +01:00

Roboc

Objective of the exercise

Multiplayer maze game over network

All instructions avaiable in the course Apprenez à programmer en Python , from Open Classrooms.

Gameplay / roadmap

  1. run server
  2. choose a map
  3. accept client connection
  4. when number of connected client is reached, any clients can start the game with the command 'PLAY'
  5. each robot is randomly placed on the map
  6. play turn by turn
  7. no new client during the game

Files

  • server.py: server script
  • client.py: client script
  • configuration.py: constants, variables and function
  • map.py: object providing a navigable map
  • connectsocket.py: socket object providing network
  • readme.md: you are reading it!
  • cartes: place for map files (ext. .txt)

Commands

The robot is controllable by keyboard commands. The following commands must exist:

  • Q: Quit game
  • N: move north (up)
  • E: move east (right)
  • S: move south (down)
  • O: move west (left)
  • Each of the above directions followed by a number allows you to advance several squares (e. g. E3:3 squares to the east)

Remarques

Bonus