Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -3,7 +3,7 @@ import system'routines;
import extensions;
import extensions'routines;
const string[] image = new string[]{
const string[] image = new []{
" ",
" ################# ############# ",
" ################## ################ ",
@ -50,7 +50,7 @@ extension zhangsuenOp : Matrix<CharValue>
if(self.numTransitions(r,c) != 1)
{ ^ false };
ifnot (self.atLeastOneIsWhite(r,c,firstStep.iif(0,1)))
if:not (self.atLeastOneIsWhite(r,c,firstStep.iif(0,1)))
{ ^ false };
toWhite.append(new { x = c; y = r; });
@ -100,7 +100,7 @@ extension zhangsuenOp : Matrix<CharValue>
var nbr := nbrs[group[i][j]];
if (self[r + nbr[1]][c + nbr[0]] == $32)
{ count := count + 1; $break; };
{ count := count + 1; :break; };
}
};
@ -136,17 +136,17 @@ extension zhangsuenOp : Matrix<CharValue>
{
var it := self.enumerator();
it.forEach::(ch){ console.print(ch," ") };
it.forEach::(ch){ Console.print(ch," ") };
while (it.next())
{
console.writeLine();
Console.writeLine();
it.forEach::(ch){ console.print(ch," ") }
it.forEach::(ch){ Console.print(ch," ") }
}
}
}
public program()
public Program()
{
Matrix<CharValue> grid := class Matrix<CharValue>.load(new
{
@ -162,5 +162,5 @@ public program()
grid.print();
console.readChar()
Console.readChar()
}