A classic card game against a computer opponent. The object of this game is to…