Below are the examples of clue assignment I posted
earlier along with a response from logo-l:
>(original posting)
>(In the examples below, 'R' is red and '-' means
>anything else that does not match and is of no
>concern for the clues assigned.)
>EXAMPLE: 1 | 2 | 3 | 4 | 5 | 6
>-------------|------|------|------|------|------
> GUESS: R--- | ---R | --RR | ---R | R--- | R---
>SECRET: R--- | R--- | R--- | RR-- | RR-- | RRRR
> CLUES: B | W | W | WW | BW | BWWW
>(following is the response I got)
>Is that right? I thought that a correct guess only counts once
>in making the clues, so if you guess R--- for RRRR, you should
>be told about one exact match, not one exact and three misplaced.
>Or am I confused?
I think I have the clue assignment right (at least that's how
I have always played the game; granted, some people have not
agreed with it). Below are the rules from the rule sheet that
came with my version of the game:
A. A black key peg is placed in any of the 4 key peg holes for
every code peg which is the same colour and in exactly the
same position as one of the code pegs in the shielded holes.
B. A white key peg is placed in any of the 4 key peg holes
for each hidden code peg which is matched in colour but
not position by a peg placed by the codebreaker.
C. For example, one white key peg is placed if one red code peg
is hidden and the codebreaker has placed two or more red
code pegs in the wrong position.
(Note the 'secret' is in the shielded holes, the codebreaker
is making the 'guess', the 'clues' are key pegs, and the
game is from England so colour is spelled appropriately.)
Looking back at the examples above:
Example 1 follows rule A
Example 2 follows rule B
Example 3 follows the example in C
Example 4 follows rule B very carefully (... for each hidden
code peg which is matched in colour but not position ...)
Example 5 follows rule A for the black clue and then rule B
(again very carefully)
Example 6 is really just an extension of example 5
I think my interpretation of the rules is correct, but, as in any game
where there are rules, as long as everyone plays by the same rules,
it's a fair game.
Following is the Logo procedure for assigning clues I sent earlier.
to assign_clues :secret :guess
local "clues
make "clues "
for [peg 1 4] ~
[ifelse (item :peg :secret) = (item :peg :guess) ~
[make "clues word :clues "B] ~
[if memberp (item :peg :secret) :guess ~
[make "clues word :clues "W] ~
] ~
] ~
output :clues
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org. Mail
questions about the list administration to logofdn@gsn.org. To
unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home