Git Product home page Git Product logo

mastermind's Introduction

Welcome!

You can find my personal site here: autoparallel.xyz. All opinions shared there are my own and do not reflect any views from any organizations I am associated with whatsoever.

In the past I studied mathematics and physics. Now, I'm more interested in computing and distributed systems as well as cryptography. There's a wonderful interplay between math and computing that I started to love over the years. I would really enjoy getting to apply the background I have in pure mathematics to formal verification of software. Quantum computing is another subject high on my list of interests (and would be fun to explore deeper given my background in Clifford algebras).

Currently a Staff Research Engineer at Pluto

Education

Ph.D. - Mathematics (Dissertation)

BS - Mathematics and Physics

Wrote an open source textbook: Mathematics for Physicists and Chemists.

Articles and Blogs

At Primitive:

mastermind's People

Contributors

autoparallel avatar leahgibson avatar

Stargazers

 avatar

Watchers

 avatar

mastermind's Issues

Add feedback logic to `add_guess()`

When a user adds a new guess, we need to check which colors are correct, and if any are in the correct spot as well and build feedback using the FeedbackColors enum.

  • Add logic that correctly counts the number of colors in the correct spot and puts a FeedBackColors::Black marker for those.
  • Add logic that counts the number of correct colors that aren't in the right spot and puts a FeedbackColors::White marker for those.
  • Otherwise, puts an empty marker. This requires adding an additional "empty" element to the enum FeedbackColors.
  • If you determine that there are 5 black markers, then the game is over and the user won.
  • Print next to the user's guess, the feedback. This logic should be added to print_board()

read_guess() and add_guess() can be modified in whatever way to track these things properly. Just make sure we're doing the correct things in the loop in main.rs

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.