#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    File: igames.py
    Description: Intelligent games written with Jeppeto
"""

import __meta__ 
__meta__.add_jeppeto_into_path()


# importing available games
from trilha import desktop_main as t


class IGames():
    def show_menu(self):
        while True:
            # waits for user choose a game
            # for a while, forcing trilha game
            self.game = t
            self.start_game()

    def start_game(self):
        self.game.main()
        # back to menu after playing
        self.show_menu()


if __name__ == '__main__':
    games = IGames()
    games.show_menu()
