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"). true. ?- demo6. Hand before discard = [card(eight,diamonds,8),card(jack,hearts,11),card(king,diamonds,13),card(three,clubs,3),card(ten,spades,10),card(four,hearts,4),card(seven,spades,7),card(five,spades,5),card(nine,diamonds,9),card(two,diamonds,2),card(ten,clubs,10),card(four,spades,4),card(eight,clubs,8)] Discard pile before discard = [card(queen,diamonds,12)] Hand after discard = [card(eight,diamonds,8),card(jack,hearts,11),card(king,diamonds,13),card(ten,spades,10),card(four,hearts,4),card(seven,spades,7),card(five,spades,5),card(nine,diamonds,9),card(two,diamonds,2),card(ten,clubs,10),card(four,spades,4),card(eight,clubs,8)] Discard pile after discard = [card(three,clubs,3),card(queen,diamonds,12)] true . ?- demo6. Hand before discard = [card(queen,spades,12),card(eight,hearts,8),card(four,spades,4),card(seven,spades,7),card(eight,spades,8),card(two,clubs,2),card(ten,spades,10),card(three,spades,3),card(five,diamonds,5),card(eight,diamonds,8),card(jack,clubs,11),card(three,clubs,3),card(ten,clubs,10)] Discard pile before discard = [card(eight,clubs,8)] Hand after discard = [card(queen,spades,12),card(eight,hearts,8),card(four,spades,4),card(seven,spades,7),card(eight,spades,8),card(two,clubs,2),card(ten,spades,10),card(five,diamonds,5),card(eight,diamonds,8),card(jack,clubs,11),card(three,clubs,3),card(ten,clubs,10)] Discard pile after discard = [card(three,spades,3),card(eight,clubs,8)] true . ?- halt. matt@matt-ThinkPad-T15-Gen-1:~/Documents/CSC466/Project/Source$