Skip to content

Instantly share code, notes, and snippets.

View pawel2105's full-sized avatar

Pawel Janiak pawel2105

View GitHub Profile
@pawel2105
pawel2105 / gol.rb
Created September 15, 2014 13:24
Game of life implementation
class World
attr_accessor :cells
def initialize
@cells = []
end
def push_cell cell
@cells = @cells << cell
end
class ArticlesController < ApplicationController
def index
@articles = Article.all
end
end
@pawel2105
pawel2105 / warrior_js_4.js
Created June 30, 2016 14:58
attempt for level 4
class Player {
constructor() {
this._health = 20
}
playTurn(warrior) {
considerMovement(warrior)
}
}