Git Product home page Git Product logo

python-reverse's People

Contributors

mityu avatar piny940 avatar wseng avatar username0708 avatar

Watchers

 avatar

python-reverse's Issues

石を置ける場所を返す関数

色を引数にとって、その色の石を置ける場所(座標)のリストを返す関数と、
引数なしで現在のプレイヤーが置ける場所のリストを返す関数があるとよさそう?
プレイヤーが石を置ける場所を、ハイライトするのに必要

石の数を返す関数

現状、controller.pyから石の数にアクセスするには
self.__reversi.get_board().get_white_stone_counts()とする必要があって大変。
あと、引数の数を減らすために、石の数は
{ Stone.White: m, Stone.Black: n }
の形で渡したいと思っている(各石の数はView.create_windowの引数にも渡す必要があるが、白い石の数と黒い石の数を分けて渡すとなると引数が多くなるし引数の名前も長くなるので1つの変数にまとめてしまいたいから)ので、この形で石の数を返す関数を作ってほしい(controller.pyから石の数にアクセスする場面は現状2箇所あり、その2箇所でわざわざdictionaryにまとめる処理を書くのは大変)

core.pyのTODOになってる箇所

大部分は書けるようになったはず
まだ書けない部分(=controller.pyに足りてない関数)がある場合はissueに投げといてください

コーディング規約について

  • インデントはスペース4つ
  • テストは tests/ ディレクトリに置いていく

とりあえずこれで書き始めてしまったんですけどこれでよろしいですか、というお伺いと、あと他にも規約みたいなので追加すべきものがあればコメントしてくださいというお話です。

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.