Giter VIP home page Giter VIP logo

creatures-athletic-meet's Introduction

creatures-athletic-meet

目的

抽象クラス・トレイトを使ってモデリングをしてみる

ルール

様々な生き物同士で**会を行い総合1位を決定する
  1. 徒競走・水泳・高跳びを行い、総合点によって順位を決定する
  2. 順位の決定については能力値×係数の値の比較に大きい値の方が順位が上位
  3. スタート時にそれぞれランダムに能力値が与えられる
  4. それぞれ参加できる種目には係数をもつ(走・泳・飛)
    • 人間 (1, 1, 1)
    • チーター(5, 0.5, 1.5)
    • マグロ(0, 5, 0.3)
    • サンマ(0, 3, 0.1)
    • カラス(0.2, 0, 3)
    • ダチョウ(10, 0, 1)
  5. 1位から順に10pt,5pt,3pt, 2pt, 1pt
  6. 参加できない競技には参加してはならない
    • 徒競走 ➡ マグロ, サンマ, カラス は参加不可
    • 水泳 ➡ カラス, ダチョウ は参加不可
    • 高跳び ➡ 全員参加可能
  7. 最高ポイントの出場生物は?
  8. 平均ポイントが高い生物種別は?
    • 生物種別
      • 動物(Animal)
      • 魚(Fish)
      • 鳥(Bird)

creatures-athletic-meet's People

Watchers

James Cloos avatar

Forkers

tomoyaigarashi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.