#SmartBird
SmartBird is artificial intelligence, AI, platform for Mahjong.
SmartBird provides the function that enable programmers to make thier own AI based on their strategy.
All programmers must have to do is to decide which tile(牌)should be discarded at each turn. Calculating the point will be done by Smartbird.
#How to use
You can see the Mahjong game by sample AI players by the following steps.
-
Build the project with maven.
%> cd ./Smartbird/
%> mvn install -
Deploy the sb.war to the Tomcat.
%> cp ./SmartBirdRestfulServer/target/sb.war <Tomcat installDir>/webapp/sb.war -
Launch the SmartBird.
Open the brower and access to the following URL.
http://localhost:8080/sb/index.html -
Start game
Click "start" button. The game will start.
-
Execute the pom in order to obtain sbengine.jar. %> cd ./Smartbird/
%> mvn install -
Make the class inherited from AbstractGamePlayer that is implemented in sbengine.jar.
-
Implement the "notifyTurn" method.
The method is called when the game is your turn. You need to decide which tile(牌) should be discarded. This is where you implemeted the AI for Mahjong. -
Implement the "notifySteal" method.
The medhod is called when other players discard tiles. You need to decide whether you would like to pong(ポン), chow(チー) or ron(ロン). -
After implementing your AI, execute the pom again. %> cd ./Smartbird/
%> mvn install -
Deploy the sb.war to the Tomcat.
%> cp ./SmartBirdRestfulServer/target/sb.war <Tomcat installDir>/webapp/sb.war -
Launch the SmartBird.
Open the brower and access to the following URL.
http://localhost:8080/sb/index.html -
Start game
Click "start" button. The game will start.