Last active
August 29, 2015 14:03
-
-
Save joelmccracken/f657d2ad4b6c2ca6bc0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
team([]). | |
team([Pokemon|Team]) :- pokemon(Pokemon), \+ member(Pokemon, Team), team(Team). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anyTeam([]). | |
anyTeam([Pokemon|Team]) :- pokemon(Pokemon), anyTeam(Team), length([Pokemon|Team], Len), Len =< 6. | |
pokemon(turtwig). | |
pokemon(chimchar). | |
pokemon(piplup). | |
pokemon(starly). | |
pokemon(bidoof). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment