Pico Fermi Bagels

Describe | Using | Example | Versions | Distribution | Author


Allow Zero? # Digits:

GuessResult
 1.
 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
10.
11.
12.
13.
14.
15.
16.

Describe PFB

PFB icon

PFB (Pico, Fermi, Bagels) is a number guessing game, similar to MasterMind or Jotto. For each guess, you will be told:

Fermi
a correct digit placed correctly
Pico
a correct digit placed incorrectly
Bagels
no digits are correct

Using PFB

New Game
start a new game
Allow Zero
is zero a possible digit?
# Digits
select number of digits (2-6)
Give Up
see answer
Guess
type a number guess
Result
<tab> from Guess, or select Result field for feedback; on Newton, Result displayed when Guess reaches correct number of digits

Example

If Allow Zero = checked, Digits = 3, and PFB's number = 029
GuessResultcomment
376Bagelsno digits correct
914Pico1 digit correct but in wrong place
820Fermi Pico2 digits correct, but 1 in wrong place
...(keep guessing)
092Fermi Pico Picoall digits correct, 2 in wrong places
029Fermi Fermi Fermi !!!you won

Versions

This version of Pico Fermi Bagels requires a browser with either NewtonScript support (Newt's Cape on 2.x Newton with i:General:NewtonScript:Compile preference) or "recent" JavaScript/JScript support; besides Newt's Cape, it has been tested with

(NN = Netscape Navigator; MSIE = Microsoft Internet Explorer; AOL = America OnLine's browser;
+ = works; - = doesn't work). 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). Here are a few other versions (PFB is a nice simple app to try in each new programming language/environment):

Distribution

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-2000, S. Weyer. All Rights Reserved Worldwide.

Contacting Author