Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread Steven D'Aprano
I haven't had a chance to read the entire post in detail, but one thing which stands out: On Sun, Aug 13, 2017 at 12:22:52AM -0500, boB Stepp wrote: > I have started my coding with a RatingCalculator class. The intent of > this class is to gather all methods together needed to validate and >

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread boB Stepp
It is rather late here, so I won't get to the links until much later today, but ... On Sun, Aug 13, 2017 at 1:42 AM, Steven D'Aprano wrote: > I haven't had a chance to read the entire post in detail, but one thing > which stands out: > > On Sun, Aug 13, 2017 at 12:22:52AM

[Tutor] "Path tree"

2017-08-13 Thread Michael C
Hi all: I am trying to formulate a "path-finding" function, and I am stuck on this problem: Please look at the picture attached: Those dots are coordinates of (x,y), and this tree can be thought of as a list of tuples, with each tuple consisting of (x,y). Now I am trying to make a function go

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread boB Stepp
On Sun, Aug 13, 2017 at 3:52 AM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: >> I am only at the very beginning of coding this class. I have not >> added any methods yet. Currently I am adding class constants that >> will be used in this class' methods. These constants are for

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread boB Stepp
Based upon the feedback thus far (Many thanks!) I think that perhaps I should expand on my design thoughts as I have already stubbed my big toe at the very start! On Sun, Aug 13, 2017 at 12:22 AM, boB Stepp wrote: > The intent of this project is more than just calculate

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread Alan Gauld via Tutor
On 13/08/17 21:15, boB Stepp wrote: I return to the point I made about focusing on the objects not the functionality. > It is not very well-written in my opinion. But anyway ... The basic formula > is: > > new_rating = old_rating + K_MULTIPLIER * (opponent_rating - > old_rating) + K_ADDER *

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread boB Stepp
On Sun, Aug 13, 2017 at 5:49 PM, Alan Gauld via Tutor wrote: > On 13/08/17 21:15, boB Stepp wrote: > > I return to the point I made about focusing on the > objects not the functionality. > >> It is not very well-written in my opinion. But anyway ... The basic formula >> is: >>

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread Alan Gauld via Tutor
On 13/08/17 06:22, boB Stepp wrote: > The intent of this project is more than just calculate chess ratings. > I also envision being able to store a record of all game results and > player information for my school chess players that I give lessons to. That's fair enough but OOP or no OOP the

Re: [Tutor] Long post: Request comments on starting code and test code on chess rating project.

2017-08-13 Thread Peter Otten
boB Stepp wrote: > I mentioned in one of the recent threads that I started that it is > probably time for me to attempt a substantial project using the OO > paradigm. I have had no coursework or training in OOP other than my > recent self-studies. Everything (Other than toy practice examples.)