HOME - All projects
Game Shell is an open sourece (msvc) project
I am sorry for my bad English. I shall be very thanksfull
if sombody would send
me correction of this text or its
bits
Game and players relate the program exchanging of symbols from a finite
alphabet. You may create for example player classes as for a specific game as
for all games (univerdsal players), including AI players, witch
can compite.
You may extend this program defining your own games, interfaces for games or player classes.
To make your own game perform following steps:
- Add new item for array parGames in file GameShell.h
(Provide Game's name, minimal allowed player count, maximal allowed players
count, alphabet size). Game's index in this array will code of the game.
- Define new class as an inharitance of CGame. Override
members to perform specific for this game actions. (See Game.h
file).
NOTICE! For each game must exist at least one interface.
- Find up code switch switch(m_nGame) in file
ChildView.cpp and add "case" statement for creation of instance of your class.
- Add #include "YourGame.h" directive to file ChildView.cpp.
To make your own interface perform following steps:
- Add new item for array parIntefaces in file GameShell.h (Provide Interface's name
and id of the game to witch the interface relates).
Interface's index in this array will code of the interface.
- Define new class as an inharitance of CInterf.
Override members to perform specific for this game actions. (See Interf.h
file).
- Find up code switch switch(m_nInterface) in file ChildView.cpp and add
"case" statement for creation of instance of your class.
- Add #include "YourInterf.h" directive to file
ChildView.cpp.
To make your own player class perform following steps:
- Add new item for array parPlayers in file GameShell.h
(Provide Player's name and id of the game to witch the player class
relates - it must be -1 for universal player). Game's index in this array will
code of the interface.
- Define new class as an inharitance of CPlayer. Override members to perform
specific for this game actions. (See Player.h file).
- Find up code switch(m_dlgPlayers.GetPlayerClass(i)) in file ChildView.cpp
and add "case" statement for creation of instance of your class.
- Add #include "YourPlayer.h" directive to file ChildView.cpp.
When you create an instance of some player class you may
initialize its giving an additional data. To assign by user theese parameters
you must create CXDataDlg inharitance where user enters parameters.
I you will have made new a new component of the
GameShell, please send me its source code on [email protected]. I am working with AI players to
include to this GameShell and we may conduct a tournament.
Now available for download
Game Shell 1.0 Source code (MS VC++ 6.0) (91
Kb)
Game Shell 1.0 Executable module (13
Kb)
Any queistions? Ask them here.