this is my proposal about gamerunner/rules refactoring.
I attach the whole nebulacards dir so you can see my
ideas about GameRunner/Game/Rules changes.
The classes compiles but I didn't tested if the program
works.. I just want you to look at the changes I've done
and tell me if you agree with my "line" or not...
Goal:
- remove Game Status informations from GameRunner
- remove Game Status informations from Rules (trump,
winner, handcount...)
- mantain *Rules classes
Relationship:
- GameRunner call rules.newGame() to obtain a Game
to work with
- GameRunner will call only "Game" methods
- GameRunner don't know about the existence of Rules
(except for the Rules implementing GameProvider)
- Game contain all of the Game Status.
- In particular, the "Basic" Game implemented need
an "old style rules" to work with (i've done this to
minimize the number of changes in classes)
Whole 0.6pre2 tree patched.