Skip to content

Instantly share code, notes, and snippets.

View d-lobanov's full-sized avatar

Dmitry Lobanov d-lobanov

  • Vancouver, Canada
View GitHub Profile
@d-lobanov
d-lobanov / trex.js
Last active February 28, 2020 14:03
// Runner.instance_.horizon.obstacles[0].collisionBoxes
// Runner.instance_.tRex.startJump()
// Runner.instance_.tRex.config.WIDTH
// Runner.instance_.tRex.config.HEIGHT
// Runner.instance_.tRex.xPos + 1
// Runner.instance_.tRex.yPos + 1
const CONFIG = {
deltaX: 0,
@d-lobanov
d-lobanov / gin_in_rooms.js
Last active April 10, 2019 10:13
Gin in rooms
/**
* This code sloves the problem with gin in rooms.
*/
const GIN_IN_ROOM = true;
const GIN_NOT_IN_ROOM = false;
function generateRooms(length, fillWith) {
return Array.apply(null, Array(length)).map(_ => fillWith);
}