Coder Social home page Coder Social logo

stratego_team_redshirts's Introduction

JavaScript Game - Stratego

This was our first JavaScript project at Codecool, it is a basic implementation of the core rules and game play of Stratego. It was a one sprint long project what we achieved after one week of studying JavaScript.

The project

Stratego Game

  • two-player strategic board game
  • each player has an army, and the goal is to find the flag of the other army
  • each player can move one soldier OR can start a battle per round
  • the game has two phase:
    • set up the army based on the player’s strategy
    • battle phase, when the soldiers starting to explore the enemy’s territory and searching for the flag
  • the game ends, when one of the players found the flag or can’t move any more

Technologies

Frontend: JavaScript, HTML, CSS

Backend: Python with a simple Flask server

How to run

  1. install Python3 on your computer eg. on Ubuntu (Shell):

    sudo apt-get update
    sudo apt-get install python3.6
  2. create a virtual environment for the project and activate it

    sudo apt-get python3-venv
    python3 -m venv /path/to/new/virtual/environment
    source /path/to/new/virtual/environment/bin/activate
  3. install dependencies of the project:

    pip3 install -r requirements.txt
  4. run server.py

    python3 server.py

Click on the given localhost link to play game in a browser.

stratego_team_redshirts's People

Contributors

wory04 avatar mparoczi avatar kadartibi avatar

Watchers

 avatar

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.