Skip to content

Commit

Permalink
Update enums.py
Browse files Browse the repository at this point in the history
  • Loading branch information
madcpf authored Oct 2, 2023
1 parent 09a79d3 commit 65f961d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unitary/examples/quantum_chinese_chess/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ def symbol(type_: "Type", color: Color, lang: Language = Language.EN) -> str:
return type_.value[2]
elif color == Color.BLACK:
return type_.value[3]
return "Unexpected combinations"
raise ValueError("Unexpected combinations of language and color.")

0 comments on commit 65f961d

Please sign in to comment.