Giter Club home page Giter Club logo

uecda-pyclient's Introduction

Hi there, I'm Hiroki 👋

I'm interested in creating software related to machine learning and natural language processing.

Also, I like writing and translating books in Japanese. Here are some examples:

Author

Translator

If you want to support me, see GitHub Sponsors❤️

uecda-pyclient's People

Contributors

hironsan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uecda-pyclient's Issues

カードの表し方

2次元配列で表すかそれともビット列で表すか?

ビット列の方が高速に演算はできると思うが、わかりやすさに難がある。

OptionParser

OptionParserは非推奨なので、ArgParserを使う

find_groupsのバグ

NormalCardSetでfind_groupsを実行してもジョーカーを使用している。
例えば、以下のような手札の時、

cards[0][1] = 1
cards[1][1] = 1

find_groupsを実行すると以下のような結果になってしまう。

S3
D3
S3 D3
D3 JOKER

ジョーカーは使うべきではない。

カード交換

カード交換のメソッドに交換枚数を渡せていない

MeldクラスとMeldsクラス

役を保持するのにMeldクラス、それらのコレクションとしてMeldsクラスがあると便利かも。
役の間で強さを比較しやすい。

C3C4C5 < C4C5C6みたいな

Strategyのselect_cards内部処理

場のカード状態(階段、枚数組)によって分岐をしている。
テストがしにくいので、Stateパターンを用いて分岐を無くし、カード選択処理を委譲したい。

階段のときmax_cardをjokerとしている

C4Joker(C5)C6の階段のとき

card_num      : 3
is_joker_only : False
is_kaidan     : True
is_pair       : False
max card      : JOKER(C5)
min card      : C4
suits         : 3

Jokerを最強カードとしているためこのようなことが起きる。table_cardの変更が必要。

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.