On 03/20/2015 06:20 PM, niyanax...@gmail.com wrote:
Thank you Danny Yoo for replying.
I figured out what to do for the isLegalMove but I ran into another problem. I
now get a traceback error every chip is black.
This is the traceback:
Traceback (most recent call last):
File "C:\Python34\l
Thank you Danny Yoo for replying.
I figured out what to do for the isLegalMove but I ran into another problem. I
now get a traceback error every chip is black.
This is the traceback:
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1487, in __call__
re
On 03/20/2015 01:28 PM, niyanax...@gmail.com wrote:
You have more than one copy of some lines of previous messages, and more
than one version of code in the message. So I have to guess which one
you intend to be current.
Thank you Mark for replying. I fixed the note you provided on the
I am very new to Comp Science and am still learning.
I have attached the programs needed for testing to show that I am testing my
code as well as the instructions provided for my project.
Please help me out!
Sent from Windows Mail
From: Ni'Yana Morgan
Sent: Friday, March 20, 2
>
> So let's say that in the unit tests. Add assertions that we want
> those four starred points to be legal moves.
>
> #
> import unittest
>
> class ReversiTests(unittest.TestCase):
> def testIslegalMoveOnExistingSpots(self):
> logic = Rever
Hi Ni'Yana,
Here's a little transcript of what I'd do if I were to take a testing
approach to the problem.
---
Let's say that we start with a fresh board. Imagine that we've just
created a fresh ReversiGameLogic.
What does the board look like? Let's look at the state in the initializer.
###
On 03/19/2015 08:50 PM, niyanax...@gmail.com wrote:
I am having trouble with a function in my reversi logic code. The function is the
isLegalMove I am asked to "Return a Boolean indicating if the current player can
place their chip in the square at position (row, col). Both row and col must be
On 20/03/15 04:50, Danny Yoo wrote:
Some instructors out there do not realize that unit testing is
considered a standard technique for introductory programming. Ask,
and maybe that will change.
Sadly, unit tests are not considered a standard technique for
introductory programming. At least n
From: Danny Yoo
Do you have any tests?
>>> On Thu, Mar 19, 2015 at 6:29 PM, wrote:
>>> Yes the code is to be tested with the main code and the gui. I have
>>> attached
>>> it in this email.
>> From: Danny Yoo
>> Sent: Thursday, March 19, 2015 9:31 PM
>> To: Ni'Yana Morga
On 20/03/2015 00:50, niyanax...@gmail.com wrote:
From just a quick glance seeing it's 3 in the morning here.
I am having trouble with a function in my reversi logic code. The function is the
isLegalMove I am asked to "Return a Boolean indicating if the current player can
place their chip in t
On Thu, Mar 19, 2015 at 5:50 PM, wrote:
> I am having trouble with a function in my reversi logic code. The function is
> the isLegalMove I am asked to "Return a Boolean indicating if the current
> player can place their chip in the square at position (row, col). Both row
> and col must be val
I am having trouble with a function in my reversi logic code. The function is
the isLegalMove I am asked to "Return a Boolean indicating if the current
player can place their chip in the square at position (row, col). Both row and
col must be valid indices." So I came up with my code below, how
12 matches
Mail list logo