Git Product home page Git Product logo

hanabi's Introduction

My name is Geoff Hom; I can be reached at [email protected].

This is a Hanabi solver. It allows one to explore the game space of Hanabi.

Hanabi: http://boardgamegeek.com/boardgame/98778/hanabi

To run, use Xcode 6. (This Hanabi solver is an iPad app, mostly in Swift, targeted for iOS 7.1+.)

What you can do:
--Simulate many games to get statistics.
--Walk through a single game to see how the AI plays it.
--Single games are reproducible via seeds.

What you can't do, yet:
--Enter a custom deck/deal to analyze.
--Change number of players in the game.
--Select AIs other than one that cheats. =)
--Select an AI that mimics (good) human play.

AIs:
• Omniscient: Cheats (knowledge of own hand).
  • Games lost: ~3%.
  • Time: ?
--Pure Info: (in progress) ??
--AlwaysDiscardElf: (may not work anymore) Discards every turn. Was for testing.

Other plans:
• Refactor code. (In progress.)
• Faster games?

Code structure:
• SolverElf simulates/manages the games. For each turn, she asks an AI what to do.

This is on GitHub as a personal backup, though I don't mind sharing. If you want to understand the code and it's not clear, please ask. I'm a self-taught coder, and I want to get better.

More on Hanabi:
• Google it.
• Geoff Hom's personal thoughts:
  • ?

hanabi's People

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.