Giter VIP home page Giter VIP logo

umons_project2019_stratego's Introduction

Stratego


Introduction

This project is a simple implementation of the game Stratego. The game is played on a 10x10 board. Each player has 40 pieces, 1 flag, 1 bomb, 6 scouts, 8 miners, 5 sergeants, 4 lieutenants, 4 captains, 3 majors, 2 colonels, 1 general, and 1 marshal. The pieces are placed on the board at the beginning of the game. The pieces are moved by the players in turns. The goal of the game is to capture the flag of the opponent. The game ends when one of the players captures the flag of the opponent or when all the pieces of one of the players are captured.

How to play

The game is played by two players. The players take turns to move their pieces. The first player is the red player and the second player is the blue player. The players can move their pieces by entering the coordinates of the piece they want to move and the coordinates of the destination. The coordinates are entered in the following format: (x,y). The x coordinate is the column number and the y coordinate is the row number. The columns are numbered from 0 to 9 and the rows are numbered from 0 to 9. The first player is the red player and the second player is the blue player. The red player moves first. The players can move their pieces by entering the coordinates of the piece they want to move and the coordinates of the destination. The coordinates are entered in the following format: (x,y). The x coordinate is the column number and the y coordinate is the row number. The columns are numbered from 0 to 9 and the rows are numbered from 0 to 9. The first player is the red player and the second player is the blue player. The red player moves first. The players can move their pieces by entering the coordinates of the piece they want to move and the coordinates of the destination. The coordinates are entered in the following format: (x,y). The x coordinate is the column number and the y coordinate is the row number. The columns are numbered from 0 to 9 and the rows are numbered from 0 to 9. The first player is the red player and the second player is the blue player. The red player moves first. The players can move their pieces by entering the coordinates of the piece they want to move and the coordinates of the destination. The coordinates are entered in the following format: (x,y). The x coordinate is the column number and the y coordinate is the row number. The columns are numbered from 0 to 9 and the rows are numbered from 0 to 9. The first player is the red player and the second player is the blue player. The red player moves first. The players can move their pieces by entering the coordinates of the piece they want to move and the coordinates of the destination. The coordinates are entered in the following format: (x,y). The x coordinate is the column number and the y coordinate is the row number. The columns are numbered from 0 to 9 and the rows are numbered from 0 to 9. The first player

How to run

The game can be run by executing the following command in the terminal: ant build run

How to test

The game can be tested by executing the following command in the terminal: ant build test

How to generate the documentation

The documentation can be generated by executing the following command in the terminal: ant build doc

How to generate the jar file

The jar file can be generated by executing the following command in the terminal: ant build jar


This project was created by: dochot.be for the course Software at the University of Mons (2019).

This file was generated by Github Copilot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.