Giter VIP home page Giter VIP logo

war_in_hex's Introduction

War in Hex - v0.4.2

Free implementation of a Hive style game without any copyright code/images. Also comes with two servers in Erlang and Python.

Screenshot of War in Hex

├── assets					Assets
│   ├── black_boat_tile.png
│   ├── black_general_tile.png
│   ├── black_helicopter_tile.png
│   ├── black_tank_tile.png
│   ├── black_troops_tile.png
│   ├── playarea.png
│   ├── sideboard.png
│   ├── tile_drop.wav
│   ├── tiles.xcf
│   ├── white_boat_tile.png
│   ├── white_general_tile.png
│   ├── white_helicopter_tile.png
│   ├── white_tank_tile.png
│   └── white_troops_tile.png
├── game.py
├── main.py				Python script
├── main.exe				Windows binary (XP or later)
├── README.md
├── Screenshot.png
└── tile.py

Running

Unix like systems

./main.py

On windows

./main.exe

The main.exe binary works for Windows versions XP and later, for 95 and 98 you can run setup.py to generate the required extra binary.

There are command line arguments for network support.

-n --network HOST:PORT  Enable network support.
-s --server    Act as server

To run a server on port 50006

$ ./main --network 0.0.0.0:50006 --server

or even

$ ./main -n :50005 -s

To connect a client to an already running server on localhost:50006

$ ./main --network localhost:50006

Or even

$ ./main -n :50006

Online multiplayer

See the separate project here.

Dependencies

  • python 2.7
  • pygame

On Debian systems you may run

$ sudo apt-get install python-pygame

On windows install x86 python 2.7 (must be 32bit because of pygame) and pygame for python 2.7. If you wish to compile a binary for windows install py2exe.

ToDo

  • Debug + Error handling
  • Make a server for online multiplayer

war_in_hex's People

Contributors

ali-raheem avatar

Watchers

 avatar James Cloos avatar  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.