Coder Social home page Coder Social logo

mastermind's Introduction

                             888                               d8b             888
                             888                               Y8P             888
                             888                                               888
88888b.d88b.  8888b. .d8888b 888888 .d88b. 888d88888888b.d88b. 88888888b.  .d88888
888 "888 "88b    "88b88K     888   d8P  Y8b888P"  888 "888 "88b888888 "88bd88" 888
888  888  888.d888888"Y8888b.888   88888888888    888  888  888888888  888888  888
888  888  888888  888     X88Y88b. Y8b.    888    888  888  888888888  888Y88b 888
888  888  888"Y888888 88888P' "Y888 "Y8888 888    888  888  888888888  888 "Y88888

A command-line version of the board game Mastermind, written in Ruby

Play Online at Replit: https://replit.com/@xsys/Mastermind#

Read more about the game here: https://en.wikipedia.org/wiki/Mastermind_(board_game)

Mastermind screenshot

Problems

Create a playable version of the board game Mastermind. Allow the player to choose to be either the codemaker or codebreaker. When playing as codebreaker, accept string input guesses and provide appropriate feedback on the correctness of the guess. End the game when appropriate. When playing as the codemaker, have the CPU intelligently guess and end the game when appropriate

What I used

Ruby classes/objects, arrays, hashes, accessor methods

What I learned

How to use user input to change how a game runs, how to compare arrays, basic game AI, % notation

mastermind's People

Contributors

kyle-heller avatar

Watchers

 avatar

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.