Code Monkey home page Code Monkey logo

Comments (8)

jotasprout avatar jotasprout commented on August 25, 2024 1

Sorry, first day of new job was super long and I haven't started yet but am still committed.

from flippy.

jotasprout avatar jotasprout commented on August 25, 2024

Please assign this to me. Thank you.

from flippy.

jotasprout avatar jotasprout commented on August 25, 2024

Thank you! I am on the case! Will get to it after work this afternoon.

from flippy.

jotasprout avatar jotasprout commented on August 25, 2024

Are you okay with just splitting this up into different files -- maybe by related functionality and importing them into the main "game" file?

from flippy.

atyachari avatar atyachari commented on August 25, 2024

Yes @jotasprout , you can split it into multiple files. Also, in your last commit the changes in game.py were not present. Please fix that as well.

from flippy.

jotasprout avatar jotasprout commented on August 25, 2024

Do you mean the changes to lines 21 and 25 (now lines 23 and 27)? When I update my local to yours, they show up.

from flippy.

jotasprout avatar jotasprout commented on August 25, 2024

Before I start chopping things up (and testing each chop), I want to make sure I start with a working copy. When I follow the instructions in the README, I get the following:

Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/Users/jaysprout/Documents/GitHub/hacktoberfest/Flippy/game.py", line 445, in <module>
    main()
  File "/Users/jaysprout/Documents/GitHub/hacktoberfest/Flippy/game.py", line 17, in main
    DISPLAYSURF = pygame.display.set_mode((config.getint('int_var',window_width), config.getint('int_var',window_height)))
  File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 818, in getint
    return self._get_conv(section, option, int, raw=raw, vars=vars,
  File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 808, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
  File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 803, in _get
    return conv(self.get(section, option, **kwargs))
  File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 781, in get
    d = self._unify_values(section, vars)
  File "/usr/local/Cellar/[email protected]/3.9.13_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/configparser.py", line 1152, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'int_var'```

from flippy.

atyachari avatar atyachari commented on August 25, 2024

You are facing the issue because in this PR the config is not set correctly. It should be referenced from resources directory. You might need to update here.

from flippy.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.