Void134,
I suspect you are right. In getComputerMove() you have a hard-coded set of priorities in which the first of the 5 kinds of moves to be available is chosen by the AI. Most likely, the order in which you have them is a smart strategy, but the point of your project is to explore AI improvements. An obvious modification would be to create several different categories in which the order of the priorities is different. In this case you would separate out each type of move into its own function, and create some new functions that call them in different orders. These new functions would be called something like starategyA(), strategyB(), etc that would each be just like getComputerMove() except with the move choices in a different order. There would be an input parameter where the user would specify "a" for the AI to call strategyA(), "b" to call strategyB(), etc. Otherwise your program would be pretty much the same. If you can think of additional move strategies that would be good, although tic tac toe may not be complex enough to do that.
Have you thought of a checkers implementation? It would be very similar and would probably have a larger variety of move strategies.
I can't run the game because I have Python 2.7 on all my boxes. As it turns out, Python 3 adoption has been very slow because people have so much code that they would have to change to move it up to version 3. Quite a few people have commented on this, including:
http://static.usenix.org/publications/l ... y12-02.pdf
Since your program is still small, I would suggest you re-install Python to version 2.7 and make the appropriate changes to your code so that most people will be easily able to run it. It sounds like a dumb thing to do, but that's the current state of things in Python-land.
Very good work, BTW, keep us posted!
Heinz Hemken
In Dire Need of Ideas
Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).
Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators
Return to “Grades 6-8: Math and Computer Science”
Jump to
- Announcements
- Active Forums (Make all new posts here)
- ↳ Grades K-5
- ↳ Grades K-5: Life, Earth, and Social Sciences
- ↳ Grades K-5: Physical Science
- ↳ Grades K-5: Math and Computer Science
- ↳ Grades 6-8
- ↳ Grades 6-8: Life, Earth, and Social Sciences
- ↳ Grades 6-8: Physical Science
- ↳ Grades 6-8: Math and Computer Science
- ↳ Grades 9-12
- ↳ Grades 9-12: Life, Earth, and Social Sciences
- ↳ Grades 9-12: Physical Science
- ↳ Grades 9-12: Math and Computer Science
- ↳ Advanced Science Competitions (Intel ISEF, Intel STS, Siemens Competition, JSHS, etc.)
- ↳ Getting Started
- ↳ Preparing for the Competition
- ↳ STEM Activities
- ↳ Interview Requests
- ↳ Careers in Science
- ↳ Raspberry Pi Projects Kit
- ↳ Junior Solar Sprint
- ↳ SimPandemic
- ↳ Using SimPandemic
- ↳ General Discussion
- Archived
- ↳ Preparing for the Science Fair
- ↳ Intel ISEF Preparation
- ↳ Science Teachers: Fairs, Projects, and General Support
- ↳ Grades K-5: Getting Ready for the Science Fair
- ↳ Grades 6-8: Getting Ready for the Science Fair
- ↳ Grades 9-12: Getting Ready for the Science Fair
- ↳ Physical Science
- ↳ Life, Earth, and Social Sciences
- ↳ Math & Computer Science Sponsored by Hyperion Solutions Corp
- ↳ General Questions
- ↳ InnovatioNation Teachers
- ↳ Grades 6-8: Wind Tunnel
- ↳ Grades 9-12: Wind Tunnel
- ↳ A Magnetic Primer Designer
- ↳ Bridge Design
- ↳ Build a Gauss Rifle!
- ↳ Build a Simple Circuit
- ↳ Build Your Own Crystal Radio
- ↳ Chemistry of Ice-Cream Making
- ↳ Do Oranges Lose or Gain Vitamin C After Being Picked?
- ↳ Electrolyte Challenge: Orange Juice vs. Sports Drink
- ↳ Enzyme-Catalyzed Reactions
- ↳ Forensic Science: Building Your Own Tool for Identifying DNA
- ↳ From Dull to Dazzling: Using Pennies to Test How pH Affects Copper Corrosion
- ↳ How Do Roots Grow...
- ↳ How Does Soil Affect the pH of Water
- ↳ Investigating the 'Mpemba Effect': Can Hot Water Freeze Faster than Cold Water?
- ↳ Is this connected to that? Use a homemade electronic tester to find out if electricity can flow between two objects.
- ↳ How Are Antibodies Used for Blood Typing?
- ↳ It's All in the Wrist
- ↳ Measuring the Sugar Content on a Liquid with a Laser Pointer
- ↳ Potions and Lotions
- ↳ Shaking Up Some Energy
- ↳ Spin Right 'Round with this Simple Electric Motor
- ↳ Sweet as Sugar
- ↳ The Strength of an Electromagnet
- ↳ Veggie Power! Making Batteries from Fruits and Vegetables
- ↳ Which Orange Juice Has the Most Vitamin C?