(Simple) Game Engine - Richard Somerfield

(Simple) Game Engine


Screenshots

Hopefully these thumbnails show enough detail.

  

Noughts and Crosses (3x3)

This is the simplest example, it only really requires 5 lines of definitions (inserted into a template file). And 1 of those lines is to specify the image filenames.

Player 1 = Red Nought

Player 2 = Blue Cross

Noughts and Crosses (3x3)

Once again the same, except this is now Human vs Computer.

The computer player debug information is mid-way down the right hand side of the image.

Noughts and Crosses (4x4)

By changing 3 integers we now have a 4x4 game, which is again able to play as a computer (this requires no changes - as it interpret the global changes to the definition).

Connect 4

This uses 1 extra variable from the Noughts and Crosses definition. That is the gravity simulation, (will work for any direction), which is set to 180 degrees.

The yellow dots are the locations that will be searched by the AI. This helps the engine to reduce time-per-search, as the number of possible locations has been reduced. [A special flag has been set to utilise this feature.]

Player 1 = Blue circle

Player 2 = Red circle

Connect 4

Example of the winning scenario being met.

Othello

The yellow dots indicate the initial locations to search for the AI engine.

Player 1 = Red circle

Player 2 = Blue cross

Othello

Simple change of background and foreground colours (via the menu bar).

Othello

Bigger playing area. Simple change of grid size and the starting positions.

Othello - 3 Player

Simple extensions can make this game 3 player. For this example:

Player 1 = Red circle = Human player

Player 2 = Blue cross = Human player

Player 3 = Green triangle = Computer player

Othello - 3 Player

Same as above, showing debug.

Draughts

Current player is white, and has selected the piece at Column 3, Row 5. The games engine gives a display of the legal moves available. Green means a possible move, Red a possible take.

Draughts is not 100% simulation, yet!

Player 1 = white = human

Player 2 = black = computer

Draughts

Same as above, with a Crowned piece.

Chess

Like daughts, chess is not 100% accurate.

Player 1 = gold = human

Player 2 = silver = computer

 

Chess

This is same as above, except showing AI debug mode. The letters are the piece names represented as charachers [this is fully customisable].

Blue = Player 1 pieces that are being defended

Red = Player 2 pieces that are being defended

Light Blue = Player 2 pieces that are being attacked

Pink = Player 1 pieces that are being attacked

Chess

This example is to show the versatility of the game engine. As pieces are automatically resized to fit the individual board location size, the effect of perspective is simulated.

email rich somerfield


(Simple) Game Engine Links

  • (Simple) Game Engine Main Page

  • (Simple) Game Engine Screenshots Page

  • (Simple) Game Engine Example GDL Page

  • (Simple) Game Engine Download Page