Top Banner
CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)
6

CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

CPSC 335Assignment 5

Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

Page 2: CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

Explain what strategy you used and why.• Alpha-Beta Pruning

• Why we use Alpha beta pruning? To eliminate non-interested branches of the search tree.

• Move-Orderingfor every empty square: If next move is a win or blocks opponent from winning

then add it to the list Else if the empty square is between 3 squares or

adjacent to 3 connected squares of the same type then add it to the list

Else if this empty square makes the largest connected adjacent square of the same type then add it to the list

• Transposition Table: We used a transposition table to reduce calculation time. Since at any state of the board there are many different move orderings to get to that state we reduce our calculation of those same state by keeping the utility of that state.

Page 3: CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

Describe how well your strategy worked (use your overall ranking/score to support your claims), and explain why you think it

performed the way it did.

• The strategy that we decided to use performed well on our part. We rank 3rd in the competition.

• Mostly the move ordering is how we win and we only search 7 plies.

• Limitations: Due to the 3 seconds time limit and the inefficiency of our move ordering we were only able to search 7 plies deep. This only allowed us to look 4 moves in advanced and thus does not always makes the best move.

Page 4: CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

Describe how well your strategy worked (use your overall ranking/score to support your claims), and explain why you think it

performed the way it did.

Page 5: CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

Our Best Move.Animation - FORK

Page 6: CPSC 335 Assignment 5 Leina Leung TUT 01 (Russel Apu) & Katy Lin TUT 02 (Jagoda Walny)

THE ENDThank you.