<% var b = document.beb; %> This is Ben. Ben is <% print(b.ben.age()) %> years old. Ben is <% print(b.ben.hunger()) %>. [[Ben eats a burrito.]]<% var b = document.beb; b.ben.eats(); %> Ben eats a burrito. <% if (b.gameTime.getHours() < 22) { %>Ben is <% print(b.ben.hunger()); %>.<% } %> <% if (b.gameTime.getDay() > 0 && b.gameTime.getDay() < 6 && b.gameTime.getHours() > 8 && b.gameTime.getHours() < 17) { %>[[Ben goes to work.]]<% } %> <% if (b.ben.calories < 2500 && b.gameTime.getHours() < 22) { %>[[Ben eats another burrito.->Ben eats a burrito.]]<% } %> <% if (b.ben.calories > 1250 && b.gameTime.getHours() < 22) { %>[[Ben goes for a run.]]<% } %> <% if (b.ben.calories > 500 && b.gameTime.getHours() < 22) { %>[[Ben plays video games.]]<% } %> <% if (b.gameTime.getHours() >= 22) { %>Ben is tired.<% } %> <% if (b.gameTime.getHours() >= 22) { %>[[Ben goes to bed.]]<% } %><% var b = document.beb; b.ben.runs(); %> Ben goes for a run. <% if (b.gameTime.getHours() < 22) { %>Ben is <% print(b.ben.hunger()); %>.<% } %> <% if (b.gameTime.getDay() > 0 && b.gameTime.getDay() < 6 && b.gameTime.getHours() > 8 && b.gameTime.getHours() < 17) { %>[[Ben goes to work.]]<% } %> <% if (b.ben.calories < 2500 && b.gameTime.getHours() < 22) { %>[[Ben eats a burrito.]]<% } %> <% if (b.ben.calories > 1250 && b.gameTime.getHours() < 22) { %>[[Ben goes for another run.->Ben goes for a run.]]<% } %> <% if (b.ben.calories > 500 && b.gameTime.getHours() < 22) { %>[[Ben plays video games.]]<% } %> <% if (b.gameTime.getHours() >= 22) { %>Ben is tired.<% } %> <% if (b.gameTime.getHours() >= 22) { %>[[Ben goes to bed.]]<% } %><% var b = document.beb; b.ben.sleeps();%> Ben sleeps. Ben dreams of stats. - Burritos eaten: <% print(b.ben.burritosEaten) %> - Miles ran: <% print(b.ben.milesRan) %> - Hours worked: <% print(b.ben.hoursWorked) %> - Hours gamed: <% print(b.ben.hoursGamed) %> Ben wakes up. Ben is <% print(b.ben.hunger()); %>. <% if (b.ben.calories < 2500) { %>[[Ben eats a burrito.]]<% } %> <% if (b.ben.calories > 1250) { %>[[Ben goes for a run.]]<% } %> [[Ben plays video games.]] <% if (b.gameTime.getDay() > 0 && b.gameTime.getDay() < 6 && b.gameTime.getHours() > 8 && b.gameTime.getHours() < 17) { %>[[Ben goes to work.]]<% } %><% var b = document.beb; b.ben.works(); %> Ben goes to work. Ben works. <% if (b.gameTime.getHours() > 8 && b.gameTime.getHours() < 17) { %>Ben has a lunch break.<% } else { %>Ben goes home.<% } %> <% if (b.gameTime.getHours() < 22) { %>Ben is <% print(b.ben.hunger()); %>.<% } %> <% if (b.gameTime.getDay() > 0 && b.gameTime.getDay() < 6 && b.gameTime.getHours() > 8 && b.gameTime.getHours() < 17) { %>[[Ben goes back to work.->Ben goes to work.]]<% } %> <% if (b.ben.calories < 2500 && b.gameTime.getHours() < 22) { %>[[Ben eats a burrito.]]<% } %> <% if (b.ben.calories > 1250 && b.gameTime.getHours() < 22) { %>[[Ben goes for a run.]]<% } %> <% if (b.ben.calories > 500 && b.gameTime.getHours() < 22) { %>[[Ben plays video games.]]<% } %> <% if (b.gameTime.getHours() >= 22) { %>Ben is tired.<% } %> <% if (b.gameTime.getHours() >= 22) { %>[[Ben goes to bed.]]<% } %><% var b = document.beb; b.ben.plays(); %> Ben plays video games. <% if (b.gameTime.getHours() < 22) { %>Ben is <% print(b.ben.hunger()); %>.<% } %> <% if (b.gameTime.getDay() > 0 && b.gameTime.getDay() < 6 && b.gameTime.getHours() > 8 && b.gameTime.getHours() < 17) { %>[[Ben goes to work.]]<% } %> <% if (b.ben.calories < 2500 && b.gameTime.getHours() < 22) { %>[[Ben eats a burrito.]]<% } %> <% if (b.ben.calories > 1250 && b.gameTime.getHours() < 22) { %>[[Ben goes for a run.]]<% } %> <% if (b.ben.calories > 500 && b.gameTime.getHours() < 22) { %>[[Ben plays more video games.->Ben plays video games.]]<% } %> <% if (b.gameTime.getHours() >= 22) { %>Ben is tired.<% } %> <% if (b.gameTime.getHours() >= 22) { %>[[Ben goes to bed.]]<% } %>