CarcassonneScore.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env python
  2. """
  3. Carcassonne score keeping system.
  4. Copyright 2018 George C. Privon
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. """
  16. import argparse
  17. import cgame
  18. def getargs():
  19. """
  20. Get command line arguments.
  21. """
  22. parser = argparse.ArgumentParser(description="Carcassonne score keeping \
  23. system.")
  24. return parser.parse_args()
  25. def main():
  26. """
  27. Main routine
  28. """
  29. args = getargs()
  30. mygame = cgame.cgame()
  31. mygame.runGame()
  32. sys.stdout.write("Thanks for playing!\n\n")
  33. if __name__ == "__main__":
  34. main()