問題タブ [bitboard]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 'bitboard' オブジェクトは整数として解釈できません。ビットボードはnp.uint64です
基本的に私はチェスエンジンを作ろうとしていて、ボードとビットボード表現でコーディングを始めています。しかし、ビットボードを np.uint64 操作のオペランドにして、ビットボードに np.uint64 操作を適用するのに問題があります。これはビットボード クラスです。
jupyterノートブックを使用してバックグラウンドですべてをテストしており、呼び出し時にこれを受け取りました
'bitboard' オブジェクトは整数として解釈できません
各ピースを別々に実行すると動作します:
True を返します。これを行うより良い方法はありますか?チェス プログラミング wiki を最大限に活用しようとしています。