Diabol / Jfokus-Game

Game for Jfokus booth
1 stars 0 forks source link

Game engine #1

Open tobpal opened 13 years ago

tobpal commented 13 years ago

As a game organizer I want to have as many different questions as possible , you should be able to play for a long time not answering the same question.

tommysdk commented 13 years ago

We aim to build a basic Q & A - game, where the user tries to answer as many questions correct as possible during a given time period.

Components we need:

tommysdk commented 13 years ago

It would be cool to have some kind of tool that basically executes the code snippets in the questions to generate the correct answer, so we can assure that we have the correct answer for each question.

Each question should probably also contain some form of randomly generated variables/data so we can reuse questions without having them expect the same answer every time. E.g., question: "System.out.println("{variable}");" would be generated to "System.out.println("foo");" one time but "System.out.println("bar");" the next time.

tommysdk commented 12 years ago

So yesterday we started to outline the basic API designs. We need a game engine, which is able to bootstrap new games, determine rules etc. A game engine can hold an arbitrary amount of game sessions (representing an actual game, whether about to start, ongoing or finished). Each game session holds an arbitrary amount (determined by the rules in the game engine) of player sessions, which keeps track on questions, score etc for each player. We also started outlining interface classes for these three components, see GameEngine, GameSession and PlayerSession classes respectively. As these designs are only a first draft, they are very much subject for future refactoring.