Freelancer: neilkakkar
Compartir:
Reportar entrada

Generic and Modular N player game

The code elegantly implements a generic framework to the given task. One can easily choose the number of players ( shown in green ), decide which player begins, choose the size of the board, choose unlimited number of obstacles ( shown in blue) , design their custom win and start messages : all through changing the value of some simple global variables. The code meets the requirements as stated in the task. No external library ( except random - for dice simulation ) has been used.

Participación en el concurso Nro.1 para                                                 Most elegant and Best solution for the following task
Participación Nro. 1

Tablero de aclaración pública

  • neilkakkar
    neilkakkar
    • 7 años atrás

    Obstacles are loaded in at runtime from obstacles.txt , and the message content is also loaded in from messages.txt at runtime. Double roll causes player to move back the value of the dice, ensuring player doesn't go below 1 and above 49.

    • 7 años atrás