Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -41,9 +41,9 @@ puzzle = new Func1[]
|
|||
(bits => bits.top(11).selectBy::(x => x.toBit()).summarize() == 4 )
|
||||
};
|
||||
|
||||
public program()
|
||||
public Program()
|
||||
{
|
||||
console.writeLine();
|
||||
Console.writeLine();
|
||||
|
||||
for(int n := 0; n < 2.power(12); n += 1)
|
||||
{
|
||||
|
|
@ -53,10 +53,10 @@ public program()
|
|||
var counts := bits.zipBy(results, (b,r => b.xor(r).toBit() )).summarize();
|
||||
|
||||
counts =>
|
||||
0 { console.printLine("Total hit :",results.printSolution(bits)) }
|
||||
1 { console.printLine("Near miss :",results.printSolution(bits)) }
|
||||
12 { console.printLine("Total miss:",results.printSolution(bits)) };
|
||||
0 : { Console.printLine("Total hit :",results.printSolution(bits)) }
|
||||
1 : { Console.printLine("Near miss :",results.printSolution(bits)) }
|
||||
12: { Console.printLine("Total miss:",results.printSolution(bits)) };
|
||||
};
|
||||
|
||||
console.readChar()
|
||||
Console.readChar()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue