Catrobat

Create a solver (AI) for the board game Mastermind in Pocket Code

Please write a Pocket Code program for the board game Mastermind where the user specifies the code combination (e.g. on a paper) and the computer (Pocket Code program) tries to solve it.

A typical game would look like this:

  1. You write down your code (color combination) on a paper and start the Pocket Code program.
  2. The computer makes a guess.
  3. You tell the computer how many pins are right by color and how many pins are right by color and position.
  4. If the guessed code is not correct yet, go back to step 2.

How to play mastermind: https://www.wikihow.com/Play-Mastermind

Do not use any abbreviations in your program, and structure it clearly. Upload your program to Catrobat’s sharing platform.

Create a screen recording video showing how to play your game. Before doing the screen recording, turn on the option in the developer’s option on your phone that allows to see the finger positions. At the end of your video, also explain at least one non-trivial feature related to the your game, using a narrated screen recording showing the corresponding parts of your program, in particular the scripts and, in the formula editor, the formulas that you have used.

Use your mother tongue throughout the video, including in Android or in the app, as long as we support your mother tongue (otherwise set your phone to English, but explain in your mother tongue). Publish your video on YouTube with a good title and description in your mother tongue. Add English language captions to your video.

Task tags

  • visual programming
  • android
  • board game
  • artificial intelligence
  • catrobat

Students who completed this task

Jayanth Koduru

Task type

  • code Code
close

2017