Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: The Python Thread  (Read 2485 times)

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #30 on: September 08, 2011, 09:19:35 pm »

Your not trying to use libtcod in c++ are you? Just to be sure...

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #31 on: September 08, 2011, 09:34:51 pm »

I have the libtcodpy.py file in the C:\\Python32\Lib directory, and I either go into the console interpreter or IDLE and type "import libtcodpy". I also have the dlls that came with libtcod in pythons dll folder. Oh, and it is libtcod python version.
Logged

David Holmes

  • Bay Watcher
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #32 on: September 08, 2011, 10:29:48 pm »

As an experiment, try making a new folder, put the libtcodpy.py and the dlls in it, open a cmd.exe prompt, cd to the new folder, and try running python.exe from that folder and see if that works.
Logged

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #33 on: September 09, 2011, 02:59:07 pm »

Ok, that worked. Thank you!
Logged

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #34 on: September 10, 2011, 06:44:07 pm »

UPDATE: I managed to make a small program to ask a simple math question, then determine if the answer given is correct or not. After 3 hours of bashing my head against the keyboard, I figured out that I had a problem with indentation on a couple of lines. . .but the feeling of sucsess when I finally got it was totally worth it.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: The Python Thread
« Reply #35 on: September 11, 2011, 11:51:43 pm »

My experience with programming...

Getting 90-95% of the way there is trivial.  That last 5-10% is a royal *****, though.

Seriously, bringing a program to very nearly done often takes two hours.  Finishing it takes two weeks.  Most of that being debugging.  No wonder they give us so much time to do CS assignments...
Logged
Pages: 1 2 [3]