list.py 402 B

123456789101112131415161718192021222324
  1. #! /usr/bin/env python3
  2. import json
  3. GAMES = [
  4. {
  5. "description": "Old Fashioned Tic Tac Toe",
  6. "game_id": "ttt",
  7. "num_players": 2,
  8. "tie_possible": True,
  9. },
  10. ]
  11. def lambda_handler(event, context):
  12. return {"statusCode": 200, "isBase64Encoded": False, "body": json.dumps(GAMES)}
  13. def main():
  14. print("No CLI support.")
  15. if __name__ == "__main__":
  16. main()