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

Automatically close non matching tiles #4

Open
wants to merge 82 commits into
base: master
Choose a base branch
from

Conversation

alexiosmakris
Copy link

Can you please inform about how to automatically close the tiles that are not matching, instead of having to click to another one to make them close?
I have tried pasting the following lines
this.firstPick.flip();
this.secondPick.flip();
this.firstPick = this.secondPick = undefined;
under these ones
this.secondPick = tile;
this.message = Game.MESSAGE_MISS;
on the file game.js, but that makes the second tile not open at all.
I put them in a setTimeout function, but then I get the error "Cannot read property 'flip' of undefined".
Thank you very much for time.

IgorMinar and others added 30 commits December 23, 2010 22:32
the best practice is not to use angular markup in index.html so
the hide/show thing is not needed.

instead of <div>{{foo}}</div> use <div ng:bind="foo"></div> in
index.html. In other templates it is totally fine to use markup.
Added basic configuration, so all you need to run e2e tests:
1/ start web server in project root
>> ./scripts/web-server.js

2/ start JsTD server
>> ./scripts/e2e-test-server.sh

3/ capture some browser
navigate to http://localhost:9877/capture

4/ run the tests
>> ./scripts/e2e-test.sh
- change forward slash into back slash in Win scripts
- split params to new lines
- remove $tests option as it makes no sense now
IgorMinar and others added 30 commits May 15, 2012 18:22
Simple text and replace and it works on node 0.8.
Added link to cloudbees clickstart
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

Successfully merging this pull request may close these issues.