Skip to content

Commit

Permalink
Fixed visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
jbossjaslow committed Mar 2, 2019
1 parent 4aadf7e commit ed22e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TetrisAIBot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ function displayGenome(genome) --TODO Fix
local cell = {}
for dx=0,3 do --
cell = {}
cell.x = 50+5*dx
cell.x = 5+5*dx
cell.y = 70+5*0
cell.value = network.neurons[i].value
cells[i] = cell
Expand Down Expand Up @@ -782,7 +782,7 @@ function displayGenome(genome) --TODO Fix
end
end

forms.drawBox(netPicture, 5-3,70-3,5+10*5+2,70+20*5+2,0xFF000000, 0x80808080)
forms.drawBox(netPicture, 5-3--[[50-3]],70-3,5+10*5+2--[[50+10*5+2]],70+20*5+2,0xFF000000, 0x80808080)
for n,cell in pairs(cells) do
if n > Inputs or cell.value ~= 0 then
local color = math.floor((cell.value+1)/2*256)
Expand Down

0 comments on commit ed22e0a

Please sign in to comment.