Git Product home page Git Product logo

real-time-risk's Introduction

Alt text

To Start Game:

  • unzip directory into desired location, this path is hence called directory

Linux

  • open terminal
  • "cd directory"

Start a server:

  • run "python server.py arg1 arg2"
    • arg1 = port number
    • arg2 = number of players 1-4
  • ex.) "python server.py 5555 3" starts game on port 5555 with 3 players

Start specified number of clients one for each player:

  • run "python client.py arg1 arg2"
    • arg1 = port number same as server
    • arg2 = host machines IP address
  • ex.) "python client.py 127.0.0.1 5555" connects to local-host on port 5555

Note: Must have python and pygame installed

Windows

  • open command prompt
  • "cd directory"

Run server

  • "cd windows-exe\server"
  • Run "server.exe arg1 arg2"
    • arg1=port number, perferably choose number greater than 5000
    • arg2=number of clients(players), number between 1 and 4
  • ex.) "server.exe 5555 1" this starts a game on port 5555 with 3 players

Connect clients to server

  • "cd windows-exe\client"
  • Run "client.exe arg1 arg2"
    • arg1 = IP address of host computer server
    • arg2 = port number, choosen by server
  • ex:) "client.exe 127.0.0.1 5555" connects to local-host on port 5555

Note: Game only starts after all clients have connected

Game Play

  • Right click to select contry to move armies from
  • Left click to move armies into adjacent country
  • Number keys change quantity of armies moved

Note: The game quickly digresses into manical clicking

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.