An interactive Tic Tac Toe game
Overview
This module implements an interactive Tic Tac Toe game
It can present a Tic-Tac-Toe board that is updated using AJAX requests upon each user move.
The module implements the alpha beta search algorithm (Minimax search optimized by performing alpha beta pruning) for determining the next move, which are common algorithms for zero-sum two player games (e.g. Tic Tac Toe and Chess).
Sandbox project page:
http://drupal.org/sandbox/ankitchauhan/1556724
You can clone the repository with the following command:
git clone --recursive --branch 6.x-1.x http://git.drupal.org/sandbox/ankitchauhan/1556724.git tic_tac_toe
cd tic_tac_toeDependencies:
Drupal core version 6.x
latest reviewed project
http://drupal.org/node/1578782#comment-5997300
previously reviewed project
http://drupal.org/node/1570606#comment-5979418
http://drupal.org/node/1553456#comment-5983488
http://drupal.org/node/1380540#comment-5983994
http://drupal.org/node/1434388#comment-5954324
http://drupal.org/node/1434388#comment-5963546
http://drupal.org/node/1563728#comment-5964682
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | drupalcs-result.txt | 4.2 KB | klausi |
| Screenshot.png | 28.37 KB | ankitchauhan |
Comments
Comment #1
patrickd commentedwelcome,
As installation and usage instructions are quite important for us to review, please take a moment to make your project page follow the tips for a great project page. Also make sure your README.txt follows the guidelines for in-project documentation.
while waiting for an in-depht review of your module you can start out fixing some coding style issues detected by automated tools:
http://ventral.org/pareview/httpgitdrupalorgsandboxankitchauhan1556724git
We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.
regards
Comment #2
ankitchauhan commented@patrickd
Thanks for your quick response.
I update my application soon after fixing some coding style issue.
Thanks again,
ankit
Comment #3
ankitchauhan commentedapplying for pareview bonus
Comment #4
luxpaparazzi commentedComment #5
luxpaparazzi commentedComment #5.0
luxpaparazzi commentedreviewed project links added
Comment #5.1
ankitchauhan commentedupdating project description
Comment #5.2
ankitchauhan commentedupdating project summery
Comment #5.3
ankitchauhan commentedupdating project summery
Comment #6
ankitchauhan commentedapplying for PAreview Bonus
Comment #7
saltednutRegarding the .info file and using 'Games' as the package
Per: Writing .info files (Drupal 6.x)
Looks like it would be pretty easy to pass for i18n (per Coder) by updating your JS:
Comment #8
scarer commentedThere's a few of instances of using double quotes when only single quotes are needed for passing string arguments in the PHP. Board.php, GameSearch.php and TicTacToe.php all have some.
The only other concern I have is the namespace issues for the additional files e.g. Board.php, GameSearch.php and TicTacToe.php as well as the Javascript files; it would be good if all these files had the namespace for the module e.g. tic_tac_toe_board.php etc. Also the functions contained in these files should also contain the module namespace. This is just so it's clear that all of these functions, files etc. belong to this module.
I installed the module and it seems to work fine.
Also, you might want to fix up your GIT repo clone instructions at the top of this issue as it doesn't work - this only applies to you. You need to use this instead if you want to review (listed on the version control tab off the sandpit anyway):
git clone --recursive --branch 6.x-1.x http://git.drupal.org/sandbox/ankitchauhan/1556724.git tic_tac_toe
cd tic_tac_toe
There's a number of errors with the js script raphael-min.js showing up in ventral: http://www.ventral.org/pareview/httpgitdrupalorgsandboxankitchauhan15567...
Nice to have
It would be a nice addition to have a button to enable you to clear a game and start a new one (i.e. in the block). Also a score tally would be good.
Cheers
Comment #8.0
scarer commentedproject description updated
Comment #9
ankitchauhan commentedthank you guys for you review.
all fixes has been done in #7
working on #8 comments
I've updated files name with namespace tic_tac_toe
updated GIT repo clone instructions as
in issue summery
I'll update raphael-min.js with ventral coding style fixes soon.
thank you guys for your consideration.
Comment #10
klausiThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
The file names do only matter for the module file and the info file, all other files do not have to be namespaced.
manual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #11
scarer commented@klausi - oh I didn't know. I thought the namespace thing was real. Silly me. Maybe I dreamt it.
Sorry for the confusion @ankitchauhan. Good luck!
Comment #12
ankitchauhan commentedHi guys
I have done lot of modification in the project and fixing all the style issue.
Added Libraries API module dependency and added instruction in README.txt
When I apply step 5 in http://drupal.org/node/1127732 to delete README.txt in the master branch
get error as
remote: error: By default, deleting the current branch is denied, because the next
remote: error: 'git clone' won't result in any file checked out, causing confusion.
remote: error:
remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to
remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the
remote: error: current branch, with or without a warning message.
remote: error:
remote: error: To squelch this message, you can set it to 'refuse'.
remote: error: refusing to delete the current branch: refs/heads/master
To ankitchauhan@git.drupal.org:sandbox/ankitchauhan/1556724.git
! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'ankitchauhan@git.drupal.org:sandbox/ankitchauhan/1556724.git'
please guide me what to do?
Comment #13
saltednutI was looking for official documentation about README.txt being the only file that should be in the MASTER branch but I can't find it.
http://drupal.org/node/1556812#comment-5971306
You can keep the master branch with only README.txt in it.
Also see: http://drupal.org/node/1074960
Comment #14
ankitchauhan commentedhi guys
I've cleared the MASTER branch
Comment #14.0
ankitchauhan commentedproject description updated
Comment #15
ankitchauhan commentedComment #16
klausiProject 1: http://drupal.org/node/1556812
Project 2: http://drupal.org/node/1539536
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
Comment #17
ankitchauhan commentedHi klausi
I forgot this guideline. My apologies.
Actually, I just get an idea and implemented it.
Comment #17.0
ankitchauhan commentedproject description updated
Comment #18
ankitchauhan commentedapplying for pareview
Comment #19
patrickd commentedI'm afraid I've to remove that tag because 2 of your reviews are not really manual as required for review bonus, they are just pointing out issues that are / can be found by automated tools. Sorry.
Comment #19.0
patrickd commentedproject description updated
Comment #20
ankitchauhan commentedneed review
Comment #21
klausiSorry for the delay. Make sure to review more project applications and get a new review bonus to get this finished faster.
Review of the 6.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Although you should fix those issues they are no blockers, so I think this is RTBC.
Comment #22
ankitchauhan commentedHi klausi
thanks for coming back for the review. I have made the changes and committed the code.
Comment #23
sreynen commentedHi ankitchauhan,
Thanks for your contribution and welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects, at your discretion.
Now that you've experienced the full review process, please consider reviewing other projects that are still awaiting review. Anyone can help with reviews, following the guidelines.
Comment #24.0
(not verified) commentedorther project revied links added
Comment #25
avpaderno