On this page:
go

1.6 Playing MasterMind: "master-play.rkt"๐Ÿ”—โ„น

 (require htdp/master-play) package: htdp-lib

The teachpack implements the MasterMind game so that students can play the game and get an understanding of what we expect from them.

procedure

(go name) โ†’ true

  name : symbol?
chooses a โ€œsecretโ€ three-letter word, opens a canvas and a menu, and asks the player to guess the word.