a turn-based strategy game, based on the game Halebarde et Gonfanon.
Contents
pyHalebarde is a turn-based strategy game based on the rules of the board game Halebarde et Gonfanon of Eric Forgeot.
pyHalebarde is developed by Laurent P and Olivier Le Thanh Duong with pygame. The project website is hosted on Launchpad
The objective of the game is to place your four Saboteur unit in the opponent's camp.
You are the ruler of a prosperous and enchanted kingdom. Alas, the wicked king of a neighbour country suddenly declared war to your country. During those epic days, war was a loyal affair and resolved on a well-delimited battlefield, with equal weapons and forces.
You will command 4 soldiers battalions equipped with heavy halberds and chainmail but quick nonetheless, 2 archers battalions, slower but capable of ranged attacks and finally 4 battalions of saboteurs composed of spies, diplomats and warriors who are very resistants but can't climb hills or attack other units.
To play a game enter: "python pyhalebarde" in a console or "./pyhalebarde" or double click on the "pyhalebarde" file.
You will need Python, pygame and python-json or python-simplejson installed on your system to launch pyHalebarde. If you use python 2.6 python-simplejson is included by default.
Alternatively the game can be installed by running : "./setup.py install" as root you will then by able to launch the game directly via the menu.
To move a unit simply select it by clicking on it and chose his now position, blue cases indicate the unit can move there, red ones indicate it can attack. If you want to unselect a unit you can do so by right clicking.
Pressing Enter will end your turn and you can quit the game at any moment by pressing Esc.
Here are the rules of the game, taken from the Halebarde et Gonfanon website.
Notice : The Getteurs units of Halebarde et Gonfanon are called Saboteur in pyHalebarde.
The saboteurs must reach the other camp. The game is won when all the 4 saboteurs enter the opponent's camp.
Each turn a player can play 2 out of the 3 types of pawns. Each pawn of the 2 types can move or attack in the allowed directions.
The first turn only, players place 6 of their pawns on the 1st line of the battlefield.
Soldats can move 3 squares in any direction (columns, rows or diagonals). The only exception is for reaching a hill, which takes 2 moves instead of one, but for moving on a hill or going back to plains, it takes 1 normal move.
Archers can move 2 squares in straight line (columns or rows), or 1 move in diagonale, without any limitation in regard to the hills or the plains.
Saboteurs can move 2 cases in any directions but only on plains.
If a soldat or a archer is hit, he died and is definitely removed from the board. If a saboteur is attacked, he will come back to their own cam.
Soldats can go on the square of archers or other soldats, they replace them and the pawns are removed from the game. Soldats can block saboteurs by being on their way, but they can only wound them if they are 2 against 1 (if one soldat or archer is already on a square next to the target one).
Archers can kill soldats or other archer, and wound saboteurs. An archer can shoot, once a turn instead of moving, on a 2 squares range on straight lines nd 1 square range on diagonals (same ranges as for moving). They can only shoot if they are on a hill.
Saboteurs can't kill or wound anyone. They can move on plains only.
- 3 types pawns : soldat, archer and saboteur.
- 1st turn only : 6 pawns are put on the 1st line.
- Each turn : 2 types of pawn only can be manipulated.
- Soldats : - Move : 3 in all directions. Moving on a dark square uses 2 points. - Attack other pawns by going on the square. 1 soldat vs 1 soldats or archers, but needs 2 pawns vs 1 saboteur. - Can be removed out of the game.
- Archers : - Move : 2 in straight lines or 1 move in diagonal. - or : Attack range : 2 squares in straight line or 1 square diagonal, only from a dark square. - Can be removed out of the game.
- Saboteurs : - Move : 2 in all directions. Forbidden on dark squares. - Can't attack other pawns. - Can't be removed out of the game. If they are injured, come back to camp. - The game is won when the 4 saboteurs enter the opponent's camp.
pyHalebarde has a simple theme system based on json.
There is actually only two themes: wesnoth, the default theme and retro, the first graphic for the game created in 30sec in gimp.
You can create your own skin for the game (documentation to come, take a look at the folder "themes" to get a concrete idea on what to do). You can put the themes you create in the folder $HOME/.data/pyhalebarde/themes. If you create a nice theme don't forget to send it to us and we will include it.
To use a custom theme launch the game using the --theme argument. Example: python pyhalebarde --theme=retro Note: There is currently some transparency problems with the theme "retro", it will be fixed later.
You can report bugs on our bugtracker on launchpad. Please specify which distribution version of pyHalebarde you are using and how the bug happened.
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: