Giter Club home page Giter Club logo

yahtzee's Introduction

Currently a WIP!

The goal of this project is to get a Neural Network to play Yahtzee, possibly through reinforcement learning. I've always wanted to learn how to apply a neural network to a game! This is just a project for my curiosity.

Already built the Yahtzee game, fully functional and as close to the official rules as I could. Really curious how high a NN might score! The game is specifically designed with inputs and outputs simplified into lists, so they can be easily implemented into a Neural Network. But I've also included a "human-playable" version, that can be played in the terminal.

The game provides 35 values for the inputs to the NN, and has 44 actions available that the NN can perform on the game, as it's outputs. So, 5 dice values, 13 ways that roll might be scored, 1 value for how many rerolls remain, and a list of the current scoresheet of 16 values. Then, 13 potential scoring actions and 31 different reroll options are available as the outputs of the NN.

After coding the game, and trying a few basic NN designs as I understood them from tutorials, I was getting nowhere. So I tried asking Claude.ai, and after a couple tries, it seems to have come up with an agent that kinda works! However, I am not experienced enough with reinforcement learning, to know how to tweak things for better results, and the AI is currently only able to give me general guidance on how to go further. I've made several tweaks to my reward system, and various agent settings, and managed to get the NN to score around 150-200 sometimes, but beyond that it doesn't seem to be progressing.

If anyone out there knows how to improve this, I could really use some help at this point.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.