Search Results

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: gotm ; Forum: Python and child forums
Forum: Python May 20th, 2009
Replies: 3
Views: 218
Posted By gotm
Forum: Python May 18th, 2009
Replies: 3
Views: 218
Posted By gotm
#!/usr/bin/python

import os.path

n = 10
allPositions = []
state = []
blackPairCap = 0
whitePairCap = 0
blackInaRow = 0
Forum: Python May 17th, 2009
Replies: 5
Views: 245
Posted By gotm
I did that and now there's another error in line 102 (lines switched around cuz I kinda reformatted the whole thing). Ugh I hate these elif errors!


#!/usr/bin/python



import os.path
Forum: Python May 17th, 2009
Replies: 5
Views: 245
Posted By gotm
Ok I restructured things around a little bit and that first elif error went away but now I have another one!!!


#!/usr/bin/python

import os.path

#nxn board, in this case n = 10
n = 10...
Forum: Python May 17th, 2009
Replies: 5
Views: 245
Posted By gotm
It keeps giving me this elif syntax error in line 103 and I have NO idea where it's coming from. UGH!!!


#!/usr/bin/python

import os.path

#nxn board, in this case n = 10
n = 10
#will hold...
Forum: Python Apr 22nd, 2009
Replies: 2
Views: 234
Posted By gotm
Oh, and apparently my blocked function is not recursive? I thought it was, but it needs to be, so any help I'll take :) If not though that's fine too.
Forum: Python Apr 22nd, 2009
Replies: 2
Views: 234
Posted By gotm
So here is my program:

#!/usr/local/bin/python
#Scott Landau
#CS 380
#Assignment 1 Programming Portion in Python
#Created - 4/6/09
#Last Edited - 4/22/09

import pdb
Forum: Python Apr 21st, 2009
Replies: 13
Views: 626
Posted By gotm
Honestly, this was an assignment. I would not have lied if someone asked that in the first place. I like this forum though because I always try my assignments to the best of my ability beforehand....
Forum: Python Apr 10th, 2009
Replies: 13
Views: 626
Posted By gotm
How come this just hangs, after debugging I found it never returns True for precondition even though it should on the very first go around....ugh!!!

#!/usr/local/bin/python
#Scott Landau
#CS 380...
Forum: Python Apr 8th, 2009
Replies: 5
Views: 283
Posted By gotm
I did test the code using print statements. I also debugged it and stepped through my while loop into functions hoping I would find the problem.

I know when the problem hits, just not exactly what...
Forum: Python Apr 8th, 2009
Replies: 5
Views: 283
Posted By gotm
I know it's a problem with either my blocked() or precondition() functions, I just don't know which one and what the problem is.
Forum: Python Apr 8th, 2009
Replies: 5
Views: 283
Posted By gotm
#!/usr/local/bin/python
#Scott Landau
#CS 380
#Assignment 1 Programming Portion in Python
#Created - 4/6/09
#Last Edited - 4/7/09

#n is going to be equal to 4 for this queens problem.
n = 4
Forum: Python Apr 7th, 2009
Replies: 3
Views: 327
Posted By gotm
#!/usr/local/bin/python
#Scott Landau
#CS 380
#Assignment 1 Programming Portion in Python
#Created - 4/6/09
#Last Edited - 4/7/09

#n is going to be equal to 4 for this queens problem.
n = 4
Forum: Python May 14th, 2008
Replies: 2
Views: 385
Posted By gotm
i am completely stumped at how to create this program. can anyone help out? here are the guidelines.

Introduction

Perhaps in no other sport does statistics play as major a role as in the game...
Showing results 1 to 14 of 14

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC