GithubHelp home page GithubHelp logo

rock_paper_scissors's Introduction

Rock_Paper_Scissors

Aims

The aim of this project was to implement a rock, paper, scissors playing bot that would use subconscious cyclic patterns in a human's play to win more games than if it were to just play randomly. We then looked to see how the AI performed against a truly random opponent.

Usage

In order to play against the AI you can either:

Play in MATLAB Console

To play against AI through console, run play_game.m and use the keyboard to input your moves.

Play in App

To play against the AI or a random opponent through the GUI, run app.mlapp and use the mouse to select your move.

Play Against Random Opponent

To simulate the AI playing against a truly random opponent, run play_game_auto.m.

To Do

I can change the many .m files full of if statements for each of the agents to a single function that uses modulo arithmetic to decide what move the bot makes. This will be a much more elegant solution.

References

Lei Wang, Wenbin Huang, Yuanpeng Li, Julian Evans, and Sailing He. Multi-ai competing and winning against humans in iterated rock-paper-scissors game. Scientific Reports, 10(1), 2020. doi: 10.1038/s41598-020-70544-7.

Zhijian Wang, Bin Xu, and Hai-Jun Zhou. Social cycling and conditional responses in the rock-paper-scissors game. Scientific Reports, 4(1), 2014. doi: 10.1038/srep05830.

rock_paper_scissors's People

Contributors

cwhite098 avatar

Watchers

Ben Wilson avatar  avatar

Forkers

isaacjohnevans

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.