Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Junethack inter-server nethack tournament
HTML Other
Branch: mobile
Pull request Compare This branch is 376 commits behind master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
icons
models
povray_images
public
spec
views
webmocks
.gitignore
Gemfile
Gemfile.lock
Install-notes.md
README.mobile_branch
Rakefile.rb
Readme.md
authors.txt
database.rb
fetch_games.rb
gpl.txt
graph.rb
helper.rb
icons.rb
irc.rb
license.txt
maintenance.rb
normalize_death.rb
normalize_death_spec.rb
parse.rb
server_list
sinatra_server.rb
tournament_times.rb
trophy_calculations.rb
trophyscore.rb
userscore.rb

Readme.md

Junethack

Prerequisites

Software needed

  • ruby 1.8.7
  • rubygems (latest build)
  • curl
  • sqlite3

Gems needed

  • sinatra
  • haml
  • ruby-sqlite3
  • datamapper
  • dm-serializer
  • bundler

Usage

Run the sinatra server with

ruby sinatra_server.rb

Initialize some test servers, accounts, users and write bogus games in xlogfiles.

rake bogus:init

  • The test users created are "r4wrmage", "ad3on", "k3rio", "bh44k", "c4smith789", and "st3nno".
  • The passwords and account names are the same as the user names.
  • Two servers with xlogfiles are created.
  • Some games are written in the xlogfiles (but are not parsed into the database).

Parse the games into the database

rake fetch:get_games

  • Checks all servers on changed xlogfiles. If a xlogfile has been changed, the new games are fetched and written in the database

Create some new bogus games

rake bogus:add_game[10]

  • Adds 10 games of random players to random xlogfiles.
Something went wrong with that request. Please try again.