Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for Playtesters
#11
I tried creating a main __init__.py which should make imports visible to all areas.
It may be of use (you'll have to change 1st line):
/t_games-master
    __init__.py
    /t_games
        /adventure_games
            __init__.py
            oregon_trail_game.py
            wumpus_game.py
        /board_games
            __init__.py
            backgammon_game.py
            battleships_game.py
            connect_four_game.py
        /card_games
            __init__.py
            /solitaire_games
                __init__.py
                bisley_game.py
                canfield_game.py
                forty_thieves_game.py
                freecell_game.py
                gargantua_game.py
                klondike_game.py
                monte_carlo_game.py
                pyramid_game.py
                quadrille_game.py
                rule_checkers.py
                solitaire_game.py
                spider_game.py
                strategy_game.py
                thoughtful_game.py
                yukon_game.py
            crazy_eights_game.py
            cribbage_game.py
            ninety_nine_game.py
        /dice_games
            __init__.py
            liars_dice_game.py
            mate_game.py
            pig_game.py
            solitaire_dice_game.py
            yacht_game.py
        /gambling_games
            __init__.py
            blackjack_game.py
            craps_game.py
            roulette_game.py
        /other_games
            __init__.py
            3of6game.txt
            hamurabi_game.py
            hangman_game.py
            rps_game.py
        board.py
        cards.py
        dice.py
        full_credits.py
        game.py
        interface.py
        options.py
        other_cmd.py
        play.py
        player.py
        test.py
        utility.py
    /t_tests
        __init__.py
        /m_games
            __init__.py
            /board_games
                __init__.py
                /jungle_games
                    __init__.py
                    jumanji_game.py
                double_cranko.py
                kaissa_game.py
            /card_games
                __init__.py
        _test_all.py
        _test_utility.py
        backgammon_test.py
        battleships_test.py
        board_test.py
        cards_test.py
        connect_four_test.py
        craps_test.py
        crazy_eights_test.py
        cribbage_test.py
        dice_test.py
        game_test.py
        interface_test.py
        liars_dice_test.py
        mate_test.py
        ninety_nine_test.py
        options_test.py
        other_cmd_test.py
        pig_test.py
        player_test.py
        unitility.py
        utility_test.py
        wumpus_test.py
        yacht_test.py
    CODE_OF_CONDUCT.md
    LICENSE.txt
    README.md
Reply
#12
I was actually going to take this as a chance to reorganize the code. I was going to move all of the code in the t_games folder up one level, and then use git attributes so that when I made a release, the code for the release would only include the actual running code.

I'm also not sure that would solve the issue metulbur brought up: You should just be able to put this anywhere, regardless of the python path, and play it in that local directory.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020