Git Product home page Git Product logo

pokemon-calc's Introduction

pokemon-calc

目的

ポケモンの対戦システムの再現

再現する要素

全ては多いので、部分的に実装する

[x] タイプ
[ ] 実数値
    [x] 一般的な計算
    [ ] 「ヌケニン」などの特殊なケース
[ ] 技
    [ ] 攻撃技
        [x] 一般的な攻撃技
        [ ] 追加効果
            [ ] 自傷技、回復技
            [x] 状態異常にする技
            [ ] バフつき
            [ ] その他の特殊な技
                [ ] フリーズドライ
                [ ] イカサマ
    [x] 補助技
        [x] まもる系統
        [x] バフ、デバフ
        [x] 状態異常
[ ] 特性
    [ ] バフ系
    [ ] 場に出た時に発動する
    [ ] 攻撃を受ける前に発動する
    [ ] 攻撃を受けた後に発動する
[ ] 持ち物
    [ ] きのみ系
        [ ] 回復系
        [ ] 能力上昇系
        [ ] ダメージ軽減系
    [ ] 状態異常系
    [ ] バフ
[x] 状態異常
    [ ] ミストフィールド下では状態異常にならない
    [x] まひ
        [x] 確率で技が出ない
        [x] 素早さ半減
        [x] でんきタイプはまひにならない
    [x] やけど
        [x] 毎ターンダメージを受ける
        [x] 攻撃技のダメージ半減
        [x] 炎タイプはやけどにならない
    [x] どく・もうどく
        [x] 毎ターンダメージを受ける
        [x] 毒・鋼タイプは毒にならない
    [ ] こおり
        [x] 確率で溶けるまで動けない
        [x] 氷タイプは凍らない
        [ ] にほんばれのときにはならない
    [ ] ねむり
        [x] 寝ている間は動けない
        [ ] エレキフィールド下でならない
    [x] 他の状態異常になってると、状態異常にするための技は失敗する
[ ] 天気
    [x] 上書きできる
    [x] 5ターンで終わる
    [ ] にほんばれ
        [x] 炎のダメージが上がる
        [x] 水のダメージが下がる
        [ ] ソーラービームのためが短くなる
    [ ] あめ
        [x] 水のダメージが上がる
        [x] 炎のダメージが下がる
        [ ] ソーラービームのダメージが半減する
    [x] すなあらし
        [x] 岩タイプの特防が1.5倍になる
        [x] 岩、地面、鋼以外にスリットダメージ
    [x] あられ
        [x] 氷以外にスリットダメージ
[x] フィールド
    [x] 5ターンで終わる
    [x] 飛行タイプのポケモンには効果がない
    [x] エレキフィールド
        [x] 電気技の威力が上がる
    [x] サイコフィールド
        [x] エスパー技の威力が上がる
        [x] 優先度+1以上の技が失敗する
            [x] でんこうせっかなどの攻撃技
            [x] まもるは成功する
    [x] グラスフィールド
        [x] 草技の威力が上がる
        [x] 毎ターン回復する
    [x] ミストフィールド
        [x] ドラゴン技の威力が下がる
[ ] 対戦機能
    [ ] 2人プレイ
        [-] 同一ターミナルからの実行
        [ ] 別ターミナルでの実行
    [ ] CPUエージェント
        [ ] ランダム戦略
        [ ] タイプ相性戦略
        [ ] 貪欲戦略
        [ ] ある程度賢い戦略
  • x → 実装+テスト済
  • - → 実装のみ

対戦システム

2 人の Agent で遊べるようにする

Agent はマニュアル操作と CPU の 2 パターン用意し、CPU はいくつかのストラテジを用意する

install

$ npm install

run

$ npm run start

test

$ npm run test

build

$ npm run build

pokemon-calc's People

Contributors

tnyo43 avatar

Watchers

James Cloos avatar  avatar

pokemon-calc's Issues

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.