scene.org File Archive

File download

<root>­/­parties­/­2004­/­sota04­/­game/attax_(by_melting_pot).zip

File size:
57 778 bytes (56.42K)
File date:
2004-01-26 23:03:07
Download count:
all-time: 2 240

Screenshot (by pouët.net)

Screenshot

Preview

  • AttaxFinal/ dir
  • AttaxFinal/Attax.exe 132.00K
  • AttaxFinal/Attax.nfo 3.82K
  • AttaxFinal/attax_sdk.h 2.49K

file_id.diz

  ____ |\________|\_________|\____
  \   `|   /\__     __/\_____    /
 _/  \  /  \__/     \_ /_   /   /
 \____\/    /\___    / _/   ___/
%%%%%%/____/[SnS]|__/%%\_____/%%%%%
    Melting Pot
    
Melting Pot is proud to present Attax, a game
released for the (st)art coding party.

Unpacked binary size is 132kb.

This binary allow a human player to play attax 
game against a relatively strong integrated IA 
or against an other player. But that's not all !
Using the SDK provided in the package, the binary
can make two computer IA to play together.

But first, you need to know how it works :)

Step One: Launching the game
----------------------------
Configuration is made by command line :)
Usage: attax.exe [-hw | -w file] [-hb | -b file] [-t integer]

-hw sets a human white player
-w <file> give a ia file do load (must be a win32 dll (see SDK instructions))

-hb & -b: same as -hw & -b, but for black player

-t <integer>: sets the play time per player (seconds)

If you ommit one of the player, Blober, the integrated IA will be used.
The default time is 120 seconds

Step Two: Rules of the game
---------------------------

The game is played on a 7x7 board. Each player begins with 2 pawns
settled as given in Figure 1.

  A B C D E F G
1 O . . . . . *
2 . . . . . . .
3 . . . . . . .   * = Black
4 . . . . . . .   O = White
5 . . . . . . .
6 . . . . . . .
7 * . . . . . O

    Fig 1.

White begins.

There are two kinds of move in the attax game:

      A B C D E F G
    1 . . . . . . .
    2 . ¤ ¤ ¤ ¤ ¤ .
    3 . ¤ + + + ¤ .
    4 . ¤ + O + ¤ .
    5 . ¤ + + + ¤ .
    6 . ¤ ¤ ¤ ¤ ¤ .
    7 . . . . . . .
    
          Fig 2.
    
If the pawn is in D4, it can move in the square marqued with a '+' 
or a '¤'.

If it moves in a '+' square, it will execute a "duplication" move. 
Indeed, it does not actually moves, but duplicate itself, creating
a new pawn in the given square. For example the move D4-D3 will result
on the following board:

      A B C D E F G
    1 . . . . . . .
    2 . ¤ ¤ ¤ ¤ ¤ .
    3 . ¤ + O + ¤ .
    4 . ¤ + O + ¤ .
    5 . ¤ + + + ¤ .
    6 . ¤ ¤ ¤ ¤ ¤ .
    7 . . . . . . .

	  Fig 3.

If it moves in a '¤' square, it will execute a "jump" move. 
It does not create a new pawn there.
For example the move D4-D2 on the board of Fig 2, 
will result on the following board:

      A B C D E F G
    1 . . . . . . .
    2 . ¤ ¤ O ¤ ¤ .
    3 . ¤ + + + ¤ .
    4 . ¤ + . + ¤ .
    5 . ¤ + + + ¤ .
    6 . ¤ ¤ ¤ ¤ ¤ .
    7 . . . . . . .

The goal is to have more pawn than your opponent.
After your move, every opponent's pawn located on the adjacent squares
will now belong to you. For example, see what's giving the move D3-C3 here (black moves)

  A B C D E F G       A B C D E F G
1 O O . . . . *     1 O O . . . . *
2 . O . . . * .     2 . * . . . * .
3 . O . * * . .     3 . * * * * . .
4 . O O . . . .  => 4 . * * . . . .
5 . . . . . . .     5 . . . . . . .
6 . . . . . . .     6 . . . . . . .
7 * . . . . . O     7 * . . . . . O
                    
As you can see, a lot of changes can happen in a game !                    
                

The User Interface uses DirectX9. If it is your turn, just click on the
pawn you want to move (your pawns becomes green as you point your 
mouse over it, your opponents one becomes red) then, select your arrival
point by clicking again (if your mouse points a legal move, the square 
becomes green).
The games ends then one of the two player has no legal move available.

                    
Have Fun !

Code 
----

Mickey / Melting Pot (mickey@fairy-project.org)
Sceez  / Melting Pot (sceez@fairy-project.org)

Graphs
------
Ms. Random
Mr. Perlin

Thx to Hades for tiny DX skeleton ;)

As I'm short in time, I do not explain the SDK.
Feel free to mail Mickey for any explanation !