display decisions made instead of frame count
This commit is contained in:
parent
19cd10382f
commit
bc655979af
2 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,6 @@ however, feel free to copy any snippets of code you find useful.
|
||||||
|
|
||||||
TODOs: (that i can remember right now)
|
TODOs: (that i can remember right now)
|
||||||
- normalize `for i=a,b` code style
|
- normalize `for i=a,b` code style
|
||||||
- count decisions made onscreen instead of partial frame count?
|
|
||||||
- normalize and/or embed sprite type inputs
|
- normalize and/or embed sprite type inputs
|
||||||
- settle on a network architecture
|
- settle on a network architecture
|
||||||
- compute how many input neurons the network needs instead of hardcoding
|
- compute how many input neurons the network needs instead of hardcoding
|
||||||
|
|
5
main.lua
5
main.lua
|
@ -22,6 +22,7 @@ local es -- evolution strategy.
|
||||||
local trial_frames = 0
|
local trial_frames = 0
|
||||||
local total_frames = 0
|
local total_frames = 0
|
||||||
local lagless_count = 0
|
local lagless_count = 0
|
||||||
|
local decisions_made = 0
|
||||||
|
|
||||||
local force_start = false
|
local force_start = false
|
||||||
local force_start_old = false
|
local force_start_old = false
|
||||||
|
@ -528,7 +529,7 @@ local function doit(dummy)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
draw_framecount(12, 215, total_frames)
|
draw_framecount(12, 215, decisions_made)
|
||||||
|
|
||||||
screen_scroll_delta = screen_scroll_delta + game.R(0x775)
|
screen_scroll_delta = screen_scroll_delta + game.R(0x775)
|
||||||
|
|
||||||
|
@ -646,6 +647,8 @@ local function doit(dummy)
|
||||||
start = force_start_old,
|
start = force_start_old,
|
||||||
select = false,
|
select = false,
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
decisions_made = decisions_made + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue