palaska / splendor_game Goto Github PK
View Code? Open in Web Editor NEWImplementation of the game called Splendor in Prolog
Implementation of the game called Splendor in Prolog
#How to Run Splendorr!! 1) Enter the names of the players to the "players.pl" file. 2, 3 and 4 players are supported, the board and chip counts will be updated accordingly. 2) Run "run.pl" by typing "swipl run.pl" to the command line or on the SWI Prolog console, by entering the command "consult('run.pl').". Then just type "runGame." and the game will start with the defined players. 3) There is no agent other than human in the code. It is possible to test the frame by playing turn by turn. The command list is provided below. Each command must be ended with a dot (.) in order to be executed. pickCoin(red,white,blue). - Use this to pick 3 coins pickCoin(black,black). - Use this to pick 2 coins pickCoin(black). - You can use this when there is only 1 pile left on the board buyCard(7). - Buy the card at the Slot number 7. reserveCardBoard(7). - Reserve the card at the Slot number 7. reserveCardDeck(2). - Reserve the card from the top of the tier 2 deck. pass. - Use this when you want to pass your turn / when you don't have any moves to do. When you pick coins and exceed the 10 coin limit, the game will ask you to choose the coins to return one by one. Ex: ?- You must return coin. Color: white. ?- You must return coin. Color: black. When there are two nobles available to pick in the same turn, the game will ask you to prefer one. If there are 2 available nobles, the options are "1." or "2.". Don't forget to enter the inputs with the following dots(.). The indexing starts from top, so the available noble on the top have the number 1, and others have 2, 3 etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.