Giter VIP home page Giter VIP logo

nevermind's Introduction

Nevermind

This code was written to be an equivalent of absurdle but for the game mastermind. Absurdle was designed in response to Wordle to make the player take the longest amount of guesses to guess the final word while having all the previous clues remain consistent.

Created Summer 2022

Use

The Nevermind.py is standalone and contains the entire algorithm.

In mastermind, the colors are orange, yellow, green, pink, fuschia, and white. The code represents the colors as o, y, g, p, f, and w respectively.

The program prompts the codemaker to enter the codebreaker's guess, a permutation of 4 of the 6 colors awailable. It will then return list showing how many codes fall into the different categories of codemaker response using the white and red pins. It simply picks the bin containing the most amount of available codes that could still be considered valid and returns the necessary pins to allow the game to continue accordingly (the codemaker has red and white pins represented as r and w).

The process continues until the codebreaker correctly guesses the only available valid code.

Observations

The algorithm can extend Mastermind gameplay to at least 5 attempts from the codebreaker even against the most optimal of guesses.

nevermind's People

Contributors

mavreyn 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.