Tags:
tag this topic
create new tag
view all tags
---+Computing the number of close to perfect pegs For each color it is: the min of the total of that color in either string - the number of perfect ones for that color. <br> For example: if the solution was 12313145 and guess was 12233444. * For 1, it is min(3,1)-1=0. * For 2, it is min(1,2)-1=0. * For 3, it is min(2,2)-1=1. * For 4, is it min(1,3)-1=0. * For 5, it is min(1,0)-0=0. This means there is one color correct but in the wrong position (the other 3) and 4 colors in the right position. There are other ways to compute this that will also work nicely.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2025-08-04
-
CathyBareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback