-
Notifications
You must be signed in to change notification settings - Fork 0
simbu95/Backgammon2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
***New Edit*** 1/18/2017 I updated the Doubling function so it is easier to access and building the AI decisions into it will be easier. The bottom of Backgammon2.jar (lines 299-305) now contains 2 functions that the AI calls to determine if it show double and if it should accept a double. Since I updated Backgammon2.jar, the AI portion for move decisions begins on line 254 now. As well, The game now asks at the start which players are AI and which are human. Some minor cleaning of the main function so it is more presentable. ***Original Text*** 1/17/2017 This is a java project I was working on earlier that has most of the functionality of Backgammon implemented. It is in java, and so to run the .jar file (basically the same as a .exe) you will need to have java installed on your computer. The .java files are the source code, you may browse and edit/recompile as you wish, though they are very messy. I removed a couple features from my old work that wasn't needed and then submitted. I will probably update the files for readabilty later, but for now this is it. If you run the .jar, 2 UIs will pop up, one to play the game and one to view past board states. I have configured the "AI" to play O and the player to play X. This can be edited on lines 30-31 of Backgammon2.java. For the AI to move, you must press the move button, this allows you to see which dice the AI recieved before it moving. The doubling feature is barely implemented, that is it will ask the player to double or not, but the opposing player always accepts, and nothing really happens. This can be edited in lines 247 of Board.java and lines 169 of Backgammon2.java. Both will need to be edited In order to have full functionality. The AI is mostly handled in lines 207 of Backgammon2.java and the current reward function is defined at lines 319 of Board.java. Editing either will change the AI. Remember, for any edits to take effect, you must recompile into a new .jar file however you see fit. This can be done through the command line with javac Backgammon2.java, or you can use eclipse, netbeans or any editor of your choice.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published