Skip to content

Instantly share code, notes, and snippets.

View Ingelheim's full-sized avatar

Lukas Ingelheim Ingelheim

View GitHub Profile
/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
$(document).ready(function() {
$("img").hover(function(e) {
$(e.target).addClass("hovered");
$("img:not(.hovered)").animate({"opacity": 0.25}, 200);
}, function(e) {
$("img:not(.hovered)").animate({"opacity": 1}, 200);
$(e.target).removeClass("hovered");
});
class Dungeon
attr_accessor :player
def initialize(player_name)
@player = Player.new(player_name)
@rooms = []
@monster = Monster.new
# @item = Item.new
end