Anonymous user
Tetris/Julia: Difference between revisions
→{{header|Julia}}
(Created page with "=={{header|Julia}}== <pre>#====== Julia-TETRIS: Features/Parameters ===================================== by Laszlo Hars, 10/21/2018 The game is played in...") |
|||
Line 113:
<lang julia>using Random
struct B4
bg::Int # ANSI code of
d::Array{Int,2} # d[b,1:2] = row,col/2 offset of block b
# constructor: Z = B4(101,[0 0; 0 1; 1 1; 1 2])
|