The animal quiz sample application is one of multiple samples showing what you can do with AndroMDA. In order to get the sources for this sample you are required to download an AndroMDA 3.x distribution.
This sample consists of a single use case generated using the following cartridges:
|Persistence (Hibernate Cartridge)||Hibernate 2.x||andromda-hibernate-cartridge|
|Service/Business (Spring Cartridge)||Spring 1.2.x||andromda-spring-cartridge|
|Web Services||Axis 1.2 (wrapped style)||andromda-webservice-cartridge|
Make sure to initialize your database by issuing maven create-schema at the command prompt. This will execute core/target/create-schema.sql which contains HSQLDB compatible DDL statements that will setup the required tables for the application. Please note that you might need to configure JBoss to allow TCP/IP connections to the embedded database. The schema can be dropped by issuing maven drop-schema which executes app/target/drop-schema.sql.
When playing the game the server will ask you to keep an animal in mind, it will keep guessing until it has exhausted its list of guesses.
The server will either try to guess your animal or ask a question so it can narrow down the list of possible animals. You will need to answer the question honestly (no cheating! :-) ).
There are two scenarios to a game-over. Either the server guesses your animal correctly or it fails in doing so. In the latter case the server will ask for your animal. It will propose you to enter the animal followed by a question that will distinguishes this animal from the last one guessed, this way it is able to use this animal in future games..
A running instance of this sample has been put online for everyone to try out: http://andromda.sourceforge.net/animal-quiz.