matt@matt-ThinkPad-T15-Gen-1:~/Documents/CSC466/Project/Source$ swipl Welcome to SWI-Prolog (threaded, 64 bits, version 8.3.20) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?- apropos(Word). ?- consult("rummy.pl"). Warning: /home/matt/Documents/CSC466/Project/Source/demos.pl:48: Warning: Singleton variables: [NewDeck,NH2,UpdateDiscard] true. ?- consult("rummy.pl"). true. ?- demo5. Hand before discard = [card(king,diamonds,13),card(king,hearts,13),card(jack,clubs,11),card(king,clubs,13),card(eight,diamonds,8),card(three,spades,3),card(four,clubs,4),card(jack,hearts,11),card(four,spades,4),card(three,clubs,3),card(seven,diamonds,7),card(eight,hearts,8),card(four,diamonds,4)] Discard pile before discard = [card(ace,clubs,1)] Hand after discard = [card(king,hearts,13),card(jack,clubs,11),card(king,clubs,13),card(eight,diamonds,8),card(three,spades,3),card(four,clubs,4),card(jack,hearts,11),card(four,spades,4),card(three,clubs,3),card(seven,diamonds,7),card(eight,hearts,8),card(four,diamonds,4)] Discard pile after discard = [card(king,diamonds,13),card(ace,clubs,1)] true . ?- halt. matt@matt-ThinkPad-T15-Gen-1:~/Documents/CSC466/Project/Source$