Search:

Type: Posts; User: chipmonk010; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. [ubuntu] Strange/random solution to stuttering dvd playback issue

    So I'm quite a long time ubuntu user and recently about a month or two ago did a fresh install of hardy on my laptop. Everything worked fine as expected except dvd playback. I installed libdvdcss...
  2. Re: Why was my thread removed? "Open source, closed minds"

    I dono why the thread was taken down article seems harmless other then the guy doesnt know what hes doing. I dont post very often but i do lurk and have noticed alot of trigger happy mods ready to...
  3. Re: First Python project checkitout / critique

    Update: new code using os module and RHTpoics' suggestions




    #!/usr/bin/env python

    import random
    import os
  4. Re: First Python project checkitout / critique

    RHTopics,

    Thanks for the correction. I will deffinately read up on the os module it sounds like a better solution. The code in this section feels a little sloppy and like it could be shorter. I...
  5. Re: First Python project checkitout / critique

    Update:
    Added high scores feature
    keeps track of high scores and writes them to a file
    user is prompted for name at game end and highsores are displayed
    also added an algorithm to generate a...
  6. Re: First Python project checkitout / critique

    @RHTopic:
    My research confirmed a lack of need for the extra 'self' prefixes and my solution was identical to yours. I like your addition of the utils class i think it makes things a little neater....
  7. Re: First Python project checkitout / critique

    @ RHTopic et all
    I have a couple questions about some variables and whether they really need to be in each instances namespace or can just reside in the class name space (self.var_name vs var_name)...
  8. Re: First Python project checkitout / critique

    oops....sry guys sloppy post on my part.
    Just for clarity of the thread heres the whole code fixed:




    #!/usr/bin/env python

    import random
  9. Re: First Python project checkitout / critique

    Latest code:
    RHTopics class style with fix
    added boat hit location display, example:

    "Patrol Boat(A1) Hit!"

    since this happens for every hit you can scroll up to see previous ones. you may...
  10. Re: First Python project checkitout / critique

    Thanks RHTopic:

    I know some of my resistance was being confused by the restructuring and reordering. My temporary solution was to put just the main program flow into a class. so i would have a...
  11. Re: First Python project checkitout / critique

    Heres a little update:
    using all-class setup for now(see below)
    moved the loop that gets user input to a seperate function
    moved the location at which the users moves are added
    (solves the bug...
  12. Re: First Python project checkitout / critique

    RHTopic:
    I like your idea but i modified it slightly using a list of tuples instead of a dictionary.
    This way you can have more then one of the same boat, for instance three patrol boats and a...
  13. Re: First Python project checkitout / critique

    fixing:
    the moves print that i broke
    indent stupidity with value error exception
    both user and comp now use a board with numbered/lettered sides:
    makes cheating easier lol
    reduces...
  14. Re: First Python project checkitout / critique

    yet another version:

    Number/letter combo input :guitar:



    #!/usr/bin/env python

    import random
  15. Re: First Python project checkitout / critique

    latest version:
    added number/letter coordinates using yaaargg's technique only used the char_to_int
    function tho.
    string formated "You Win" to match RHtopics addtions
    added WHITE_SPACE constant...
  16. Re: First Python project checkitout / critique

    Nice catch with the final move not showing up i didnt notice it. heres the fixed code and i also added constants for the hit character and the miss character at the top of the file so you can easily...
  17. Re: First Python project checkitout / critique

    You might find this site helpful:
    http://learnpydia.pbwiki.com/#Tasksforpythonlearners

    i'd also recomend: Learning Python (O'Reilly pub.)

    As for the A thru J on top thats gonna be my next goal...
  18. Re: First Python project checkitout / critique

    Thanks RHTopic for your revisions!

    In the spirit of your changes I decided to move the writing of h's to the users grid out of the class and into the main function. Seems more readable having the...
  19. Re: First Python project checkitout / critique

    Version 3: boat classes

    sorry for the short time between versions but i had some time last night and i decided to knock out the boat class and restructuring that goes along with it. So here it is....
  20. Replies
    93
    Views
    26,114

    Poll: Re: What is your favorite editor?

    I use vim and gvim cuz i know how to use them...well i know enough anyway...never really tried to learn emacs cuz the learning curve for vim was steep enough but i expect its just good although i...
  21. Re: First Python project checkitout / critique

    Version 2.0:

    I made some improvements, mostly shortening the functions using ideas from yaaarrrgg et all. I added reference numbers to the users board, although i did not go with the number/letter...
  22. Re: First Python project checkitout / critique

    I was trying to figure out how i would handle this area with a less repetitive code and i think this is exactly what you are showing me. I agree its a little difficult to understand at first glance...
  23. Re: First Python project checkitout / critique

    Thanks guys lots of good stuff up there!



    This was intentional because for some reason i had the picture of a math graph stuck in my head(aka center is 0 anything to the right or up is an...
  24. First Python project checkitout / critique

    Ok so i got the idea from here:
    http://learnpydia.pbwiki.com/TasksBeginners

    And decided i would make a game like the infamous board game Battleship. I would like you all to check it out make...
  25. Re: Is Beginning Python by Apress the best book?

    I also like Learning Python (O'Reilly) and its more advanced companion Programing Python (O'Reilly)

    Learning Python sounds like what your looking for now and Programing Python discusses speciffic...
Results 1 to 25 of 34
Page 1 of 2 1 2