Describe | Using | Example | Versions | Distribution
PFB (Pico, Fermi, Bagels) is a number guessing game, similar to MasterMind or Jotto. For each guess, you will be told:
If Allow Zero = checked, Digits = 3, and PFB's number = 029
Guess | Result | comment |
---|---|---|
376 | Bagels | no digits correct |
914 | Pico | 1 digit correct but in wrong place |
820 | Fermi Pico | 2 digits correct, but 1 in wrong place |
... | (keep guessing) | |
092 | Fermi Pico Pico | all digits correct, 2 in wrong places |
029 | Fermi Fermi Fermi !!! | you won |
This version of Pico Fermi Bagels requires a browser with JavaScript support (or NewtonScript support, i.e., Newt's Cape on 2.x Newton with i:General:NewtonScript:Compile preference); besides Newt's Cape, it has been tested with
Let me know about your experience with other browsers.
PFB is similar in concept and strategy to MasterMind and Jotto (but PFB does not allow duplicate digits). After I first saw "Pico Fermi Bagels" (PFB) as a Basic program at the Lawrence Hall of Science in Berkeley in the early '70s, I wrote several Logo versions. My kids convinced me it was easier to remember "Fermi" by "firm" (though some programs may reverse roles of Fermi and Pico). PFB is a nice simple app to try in each new programming language/environment.
Last updated: 21 Jun 2005: updated syntax via JSLint and tested with newer browsers
This version is free, and can be downloaded locally and mirrored in its entirety. If you copy/modify/improve the code, I would appreciate an acknowledgment of this version and link to this page.
© 1999-2007, S. Weyer. All Rights Reserved Worldwide.