aseruneko / diceforge-ai

my elementary ai project for the board game "diceforge".
Creative Commons Zero v1.0 Universal
3 stars 0 forks source link

Dice composition #12

Closed willofhare closed 4 years ago

willofhare commented 4 years ago

Dice2個のペアである Dicesクラスと Faceを6つもつDiceクラスと Faceクラスを作ってみた。 Faceの効果解決にResourcesクラスのメソッドを使いたいので依存してます。

aseruneko commented 4 years ago

あざまる~コメント多めに貼ってくれて助かる faceクラスは処理が多くなりそうなのでファイル分けたほうがいいかもしれんね

https://github.com/aseruneko/diceforge-ai/blob/1505f8f3bc4e4d1cbc93d204419c21b9156d3fff/src/Dice_composition.py#L36

https://github.com/aseruneko/diceforge-ai/blob/1505f8f3bc4e4d1cbc93d204419c21b9156d3fff/src/Dice_composition.py#L59-L60

Typo的なものがあるけど、このあたりは早めに処理をテストできるコードを用意したほうがいいかもしれんな考えときます、とりあえずmergeはします

開発あざまるまるです助かります!!!!!!!