Tetris/Julia: Difference between revisions

m
Fixed syntax highlighting.
m (Avoid miscounting task entries twice)
m (Fixed syntax highlighting.)
 
Line 6:
{{works with|Julia|1.0}}
 
<langsyntaxhighlight lang="julia">struct B4 # Tetromino made of 4 Blocks
bg::Int # ANSI code of tetromino color (bground of " ")
d::Array{Int,2} # d[b,1:2] = row,col/2 offset of block b
Line 109:
end end end
sleep(0.01) # not to take all CPU time
end end end</langsyntaxhighlight>
 
The following long comment block has to be appended to program code:
9,476

edits