This PR changes the points assigned to the General. Generals used to be float('inf') to denote end of the game.
However, this point scheme does not work nicely with machine learning algorithms which usually involves tensors of float32 or float64 types. float('inf') is just unnecessarily huge to be properly represented. Thus, we chose to represent the points for General to something very big in relation to other pieces while being a finite number.
Type of change
[x] Bug fix (non-breaking changes which fixes an issue)
[ ] New feature (non-breaking changes which adds certain functionality)
Description
This PR changes the points assigned to the General. Generals used to be
float('inf')
to denote end of the game. However, this point scheme does not work nicely with machine learning algorithms which usually involves tensors offloat32
orfloat64
types.float('inf')
is just unnecessarily huge to be properly represented. Thus, we chose to represent the points for General to something very big in relation to other pieces while being a finite number.Type of change
How has this been tested?
GitHub Actions: CI