Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dan5/ppockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug

ruby -r ./config/defaultrc core.rb -d -t 1
ruby -r ./config/defaultrc.rb user_auth.rb
ruby -I ../ -r ../config/defaultrc start.rb -p 2333

idea

  • 参加するリーグのgradeをある程度の範囲で選べるとどうだろう

todo

  • ステージ制の導入

  • coreのリーグまわりをよりつくり込む

  • リーグに4人以上参加できるようにする

    • league/show

  • リーグの周期

    • 4

    • 4-4

    • 4-10-4

    • 4-10-4-20

    • 7..23 … 休日のみ

    • リーグに存在しないプレイヤーがいても対戦は進むように

    • 1時間に1回 … ある程度以上連続してやると不利になる仕組み

  • Web

  • findとfilterの違い

  • Leagueをそれぞれ不定期の時間で進行させても大丈夫なように各所気をつけておくこと

  • League日程を設定できる仕組み

とりあず認証の作戦

  • @ppockets をフォローする

  • ログインパスワード作成

    • usersにtwitter_idとscreen_name

    • ログインパスワードを作成または更新

    • @ppockets からDMでログインパスワードを送る(ログインurlも)

memo

git reset --soft 'HEAD^'

gem install rubytter i18n sqlite3 sequel sinatra sinatra-reloader sinatra_more haml

production

ruby -I ../ -r config/productionrc.rb start.rb -p 2333 -e=production

production.rb

ENV ||= “/home/dan/.rvm/gems/ruby-1.9.2-p136” ENV ||= “/home/dan/.rvm/gems/ruby-1.9.2-p136:/home/dan/.rvm/gems/ruby-1.9.2-p136@global” require ‘sequel’

root_path = File.dirname(File.expand_path(__FILE__)).untaint + ‘/..’ DB = Sequel.sqlite(root_path + ‘/db/production.db’)

# – game setting Max_players_in_league = 8 Base_url = ‘www3073u.sakura.ne.jp:2333

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages