Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
xiangqipy.piece_points Namespace Reference

No longer used, but keep for reference: classes for handling piece points. More...

Classes

class  BasePoints
 
class  PositionPts
 

Variables

dict base_pts_icga_2004
 
np general_position_icga_2004 = np.zeros(90).reshape((10, 9))
 
np advisor_position_icga_2004 = np.zeros(90).reshape((10, 9))
 
np elephant_position_icga_2004 = np.zeros(90).reshape((10, 9))
 
np chariot_position_icga_2004
 
np horse_position_icga_2004
 
np cannon_position_icga_2004
 
np soldier_position_icga_2004
 
dict position_points_icga_2004
 
BasePoints DEFAULT_BASE_POINTS = BasePoints(piece_vals=base_pts_icga_2004)
 
PositionPts DEFAULT_POSITION_POINTS
 

Detailed Description

No longer used, but keep for reference: classes for handling piece points.

Variable Documentation

◆ advisor_position_icga_2004

np xiangqipy.piece_points.advisor_position_icga_2004 = np.zeros(90).reshape((10, 9))

Definition at line 55 of file piece_points.py.

◆ base_pts_icga_2004

dict xiangqipy.piece_points.base_pts_icga_2004
Initial value:
1= {
2 PieceType.kGen: 6000,
3 PieceType.kAdv: 120,
4 PieceType.kEle: 120,
5 PieceType.kCha: 600,
6 PieceType.kHor: 270,
7 PieceType.kCan: 285,
8 PieceType.kSol: 30
9}

Definition at line 10 of file piece_points.py.

◆ cannon_position_icga_2004

np xiangqipy.piece_points.cannon_position_icga_2004
Initial value:
1= np.array([
2 [0, 0, 2, 6, 6, 6, 2, 0, 0],
3 [0, 2, 4, 6, 6, 6, 4, 2, 0],
4 [4, 0, 8, 6, 10, 6, 8, 0, 4],
5 [0, 0, 0, 2, 4, 2, 0, 0, 0],
6 [-2, 0, 4, 2, 6, 2, 4, 0, -2],
7 [0, 0, 0, 2, 8, 2, 0, 0, 0],
8 [0, 0, -2, 4, 10, 4, -2, 0, 0],
9 [2, 2, 0, -10, -8, -10, 0, 2, 2],
10 [2, 2, 0, -4, -14, -4, 0, 2, 2],
11 [6, 4, 0, -10, -12, -10, 0, 4, 6]
12])

Definition at line 84 of file piece_points.py.

◆ chariot_position_icga_2004

np xiangqipy.piece_points.chariot_position_icga_2004
Initial value:
1= np.array([
2 [-2, 10, 6, 14, 12, 14, 6, 10, -2],
3 [8, 4, 8, 16, 8, 16, 8, 4, 8],
4 [4, 8, 6, 14, 12, 14, 6, 8, 4],
5 [6, 10, 8, 14, 14, 14, 8, 10, 6],
6 [12, 16, 14, 20, 20, 20, 14, 16, 12],
7 [12, 14, 12, 18, 18, 18, 12, 14, 12],
8 [12, 18, 16, 22, 22, 22, 16, 18, 12],
9 [12, 12, 12, 18, 18, 18, 12, 12, 12],
10 [16, 20, 18, 24, 26, 24, 18, 20, 16],
11 [14, 14, 12, 18, 16, 18, 12, 14, 14]
12])

Definition at line 58 of file piece_points.py.

◆ DEFAULT_BASE_POINTS

BasePoints xiangqipy.piece_points.DEFAULT_BASE_POINTS = BasePoints(piece_vals=base_pts_icga_2004)

Definition at line 121 of file piece_points.py.

◆ DEFAULT_POSITION_POINTS

PositionPts xiangqipy.piece_points.DEFAULT_POSITION_POINTS
Initial value:
1= PositionPts(
2 pts_arrays_black=position_points_icga_2004)

Definition at line 122 of file piece_points.py.

◆ elephant_position_icga_2004

np xiangqipy.piece_points.elephant_position_icga_2004 = np.zeros(90).reshape((10, 9))

Definition at line 56 of file piece_points.py.

◆ general_position_icga_2004

np xiangqipy.piece_points.general_position_icga_2004 = np.zeros(90).reshape((10, 9))

Definition at line 54 of file piece_points.py.

◆ horse_position_icga_2004

np xiangqipy.piece_points.horse_position_icga_2004
Initial value:
1= np.array([
2 [0, -4, 0, 0, 0, 0, 0, -4, 0],
3 [0, 2, 4, 4, -2, 4, 4, 2, 0],
4 [4, 2, 8, 8, 4, 8, 8, 2, 4],
5 [2, 6, 8, 6, 10, 6, 8, 6, 2],
6 [4, 12, 16, 14, 12, 14, 16, 12, 4],
7 [6, 16, 14, 18, 16, 18, 14, 16, 6],
8 [8, 24, 18, 24, 20, 24, 18, 24, 8],
9 [12, 14, 16, 20, 18, 20, 16, 14, 12],
10 [4, 10, 28, 16, 8, 16, 28, 10, 4],
11 [4, 8, 16, 12, 4, 12, 16, 8, 4]
12])

Definition at line 71 of file piece_points.py.

◆ position_points_icga_2004

dict xiangqipy.piece_points.position_points_icga_2004
Initial value:
1= {
2 PieceType.kGen: general_position_icga_2004,
3 PieceType.kAdv: advisor_position_icga_2004,
4 PieceType.kEle: elephant_position_icga_2004,
5 PieceType.kCha: chariot_position_icga_2004,
6 PieceType.kHor: horse_position_icga_2004,
7 PieceType.kCan: cannon_position_icga_2004,
8 PieceType.kSol: soldier_position_icga_2004
9}

Definition at line 110 of file piece_points.py.

◆ soldier_position_icga_2004

np xiangqipy.piece_points.soldier_position_icga_2004
Initial value:
1= np.array([
2 [0, 0, 0, 0, 0, 0, 0, 0, 0],
3 [0, 0, 0, 0, 0, 0, 0, 0, 0],
4 [0, 0, 0, 0, 0, 0, 0, 0, 0],
5 [0, 0, -2, 0, 0, 0, -2, 0, 0],
6 [2, 0, 8, 0, 8, 0, 8, 0, 2],
7 [6, 12, 18, 18, 20, 18, 18, 12, 6],
8 [10, 20, 30, 34, 40, 34, 30, 20, 10],
9 [14, 26, 42, 60, 80, 60, 42, 26, 14],
10 [18, 36, 56, 80, 120, 80, 56, 36, 18],
11 [0, 3, 6, 9, 12, 9, 6, 3, 0]
12])

Definition at line 97 of file piece_points.py.