Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pointers to debug #3

Open
deostroll opened this issue May 23, 2016 · 1 comment
Open

pointers to debug #3

deostroll opened this issue May 23, 2016 · 1 comment

Comments

@deostroll
Copy link

Hi,

I like your work. Each time I run the game, I get new set of tiles. However, for live-debugging what the code does, whats recommended strategy?

There must be a way to manually set the racks (opponent as well as player). Can you provide some guidance here.

@amnond
Copy link
Owner

amnond commented Aug 29, 2016

Hi,

Sorry for the late reply - just realised I don't get any notifications when new messages arrive.

Don't know if it's still relevant, but here it is:

The following methods in ui.js set the racks of the player and the opponent. Notice where they are used and change the letters placed on the racks according to what you require.

self.setPlayerRack = function( letters )
{
     self.setLetters( 1, letters );
     if (self.firstrack) {
         self.firstrack = false;
         self.initRedips();
     }
};

self.setOpponentRack = function( letters )
{
    self.setLetters( 2, letters );
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants