https://github.com/wjaskowski/mastering-2048
An efficient reinforcement learning algorithm for learning a strategy for game 2048
https://github.com/wjaskowski/mastering-2048
2048 ntuples reinforcement-learning reinforcement-learning-algorithms td-learning
Last synced: 6 months ago
JSON representation
An efficient reinforcement learning algorithm for learning a strategy for game 2048
- Host: GitHub
- URL: https://github.com/wjaskowski/mastering-2048
- Owner: wjaskowski
- Created: 2016-11-14T14:21:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T12:03:48.000Z (over 8 years ago)
- Last Synced: 2025-03-26T08:14:03.249Z (7 months ago)
- Topics: 2048, ntuples, reinforcement-learning, reinforcement-learning-algorithms, td-learning
- Language: Java
- Size: 48.6 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Building
--------$> mvn package
$> mvn package -DskipTests
Testing
-------$> mvn test
or
$> mvn test -fn [do not stop on the first failed test]
Setup and some tips for developers (Intellij - preffered):
---------------------------------------------------------
* [Required!]
add '-parameters' in Java Compiler -> Additional command line parameters* Code style:
cp etc/intellij-codestyle.xml ~/Library/Preferences/IdeaIC13/codestyles/cevo.xml (on OSX)* Reformat only changed lines:
1. Show "reformat code" dialog
2. Run "reformat"
3. Set "Only VS changed text"Setup and some tips for developers (Eclipse):
---------------------------------------------
* [Required!] Java -> Compiler -> Store information about method parameters
* cevo-games -> Properties -> Java Build Path -> Add Folder("cevo-games/src/test/resources")
[So that connect4 tests work in Eclipse (they already work from command line (maven)]* General
* Editors
* Text Editors -> show print margin, print margin column 120
-> show line numbers
* Appearance
* Label Decorations -> Java Type Indicator
* Workspace
* Encoding -> UTF-8
* Refresh using native hooks or polling
* Save automatically before build* Java
* JUnit
* "Add '-ea' to VM arguments when creating a new JUnit launch configuration
* Editor
* Content Assist -> Auto activation triggers for Java .(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Delay 50 ms* Common save actions in Preferences -> Java -> Editor -> Save Actions:
* Perform the selected actions on save:
* Format edited lines
* Organize imports
* Additional actions:
* Convert control statement bodies to block
* Add final modifier to private fields
* Add missing '@Override' annotations
* Add missing '@Override' annotations to implementations of interface methods
* Add missing '@Deprecated' annotations
* Remove unnecessary casts
* Remove trailing white spaces on all lines* Load formating rules from
etc/code-formatter.xml* To make launchers work:
Window->Preferences->Maven->Hide Folders of Physically Nested Modules