Chess Variants (I) (#35) Build a 2-player Chess Game (no-AI) Make it as modular as possible, so that It is easy to adapt to game rule changes (variants)

Slides:



Advertisements
Similar presentations
CHESS. CONTENTS introdution introdution introdution A Basic Chess Board A Basic Chess Board A Basic Chess Board A Basic Chess Board Openings Openings.
Advertisements

UIL Chess Puzzle Practice Material
Apostles Chess Club Lesson #4. Algebraic Chess Notation System The board is set up from white’s position. Black must look at the board from the white.
Place captured red pieces below Place captured blue pieces below Rules New Game Exit Left mouse click on piece – drag to desired location - left mouse.
Table of Contents Why Play Chess? Setting Up the Board Get to Know the Pieces Check and Checkmate What the Chess Pieces Are Worth Opening Goals Endgame.
CHESS FOR KIDS Lesson 1.
L.O. Today you will learn how to play chess. How to Play Chess.
Table of Contents The Importance of Chess –Research –Georgia Performance Standard The Players The Battlefield Magical Moves –Castling –Check and Check.
Welcome to the basics of chess. This is a graphically designed program that will help you learn how to play chess. By Amir and Mike, 9B.
European Social Class and Chess By Chris Leonard.
Chess!!. Pawn How many pieces? 8 Value: Lowest What can it do? Move forward only one space at a time. Attack: Only Diagonally.
Introduction to Chess Naming the Chess Squares Names of the Pieces Initial Setup Materials taken from Teaching Chess Step By Step manuals, Books 1 and.
Module 3 Chess 101 Strategy Strategy refers to an overall plan to achieve a goal In every game you play your goal should be to checkmate your opponent,
How to play Chess.
COME JOIN IN ALL THE FUN Beginner Chess Club.
Chess Merit Badge Chess Basics: Set Up the Board & Basic Rules by Joseph L. Bell © 2011.
A Beginners Guide. The Pieces Chess consists of Sixteen pieces eight Pawns two Rooks two Knights two bishops one Queen and one king this guide will show.
Apostles chess club Session 2. Chess pieces are made mostly in the Staunton style. It is the only style accepted by chess tournaments.
Aayush Garg Pecha-Kucha Design Games 10. Games I like Strategy games Mathematical games Paper and Pencil games Street games.
Chess Robin Burke GAM 206. Outline o A little chess history o Play.
Team Members Satyajit Deshmukh Mandar Samant Pradnyesh Gore Nikhil Bagewadi Rakki Chesu.
Panther Chess Club Sponsors: –Mr. Sergio Treviño (English, Room 408) –Mr. Felix Esquivel (Criminal Justice, Room 50) Meetings every Monday and Wednesday.
Chess Boxing is a sport that combines intellectual fighting with Physical fighting.
#2. UIL Chess Puzzle Practice Material This year’s UIL Chess Puzzle Test includes “solve the mate” positions similar to last year’s, but it also tests.
Naďa Heráková. Chess The classic board game for two players in the form of competition also considered the sport sector. It represents the clash of two.
Artificial Intelligence in Game Design Lecture 22: Heuristics and Other Ideas in Board Games.
Apostles Chess Club Session Three. Chess Piece Symbols The symbols shown above are the ones most used when showing chess pieces in print or on the internet.
Prepared by : Walaa Maqdasawi Razan Jararah Supervised by: Dr. Aladdin Masri.
Welcome to Chess Class This will program will show you basic Chess moves Copyright William J Capehart.
How to Play Chess By: John. Dedication I dedicate this project to my family because we all love chess.
e~TASK Semester 1By Thomas Burke 1) Chess is like life because there are black and white squares on they chess board so its saying that we have good.
How to Play Chess. Name of Each Piece The relative values of the chess pieces 9 points 5 points 3+ points 3 points 1 point.
Chess By Kezia Farley.
Summary of the Moves of Chess
Lesson 1 History of Chess Why We Teach Chess Goal of Chess.
Chess By Kyle Fischer. What is chess? Chess is a game that you try to get the other person’s king in a checkmate.
Rules Of Chess!!!!!! By: Caylin Stappenbeck. Table Of Contents!!!! Rules*** Conclusion***
A game based off of the esteemed classic By: Tadziu Kosiara.
Each piece is represented by a symbol. The pieces all stand in the same position at the start of the game the pieces are the Rook, the Knight, the Bishop,
Demonstration and Application Revision Version 2.0: The Return of the Revolutionaries of the Mountain of Slyzikarieth’s Death (Part XIV) Josh Waters Ty.
What is chess???? The game chess has been described as an art, a science and a sport. Almost anyone can learn how to play. Some top chess champions can.
CHESS. Write what you already know about chess on a piece of paper which I will hand out now.
How to play chess? By Mervyn George. The Rules of the Game White always move first White always move first You should always play touch a piece move a.
CHESS 2: Castling and Forking…and a Stalemate A Levoy Power Point.
The Basics Of Chess Student Name: Jovannie Charles Date: 3/25/11.
Every chess master was once a beginner. Irving Chernev
Chess Strategies Component Skills Strategies Prototype Josh Waters, Ty Fenn, Tianyu Chen.
Discussion 2: Intro to Project 1: Chess Submit Project 1 under # 11!
CHESS Basics for Beginners. BOARD SET-UP The letters go across the board in front of you. “White on right!” Each player has a white square in their right.
A Levoy PowerPoint Presentation
CHESS Club.  The game of chess is over 1300 years old and is one of the most popular games in the world. It has received more total thought time than.
CHESS INDUCTION COURSE FORNEWLY APPOINTED PET’S PRESENTATION BY TANDEL NILESH M.(LIBRARIRAN) JAWAHAR NAVODAYA VIDYALAYA, SABARKANTHA ( GUJARAT)
Welcome to Chess Class This will program will show you basic Chess moves.
CHESS “The Ultimate GAME of Challenge and Strategy”
Some counting questions with the Rules of Chess. Chessboard and Chess pieces The game of chess is played on an 8-by-8 grid of alternately colored squares.
Objectives Students will
Explore chess related activities suitable for classroom use
Intro to Computer Science II
Ab & Team Presents CHESS “It’s not just a game”.
Ramblewood Middle Chess Club
CHESS PIECES.
How To Play Chess (And other Information)
CHESS.
How to play chess ? By Peter Mann A Beginners Guide.
Greenways Gladiators Chess Club
Chess Basics: Set Up the Board & Basic Rules
Сhess as a sport.
Every chess master was once a beginner. Irving Chernev
Rules to play chess. Chess is a played with 16 pieces: 8 pawns, 2 towers, 2 knights, 2 bishops, 1 queen and 1 king. Movements: Pawns: They only can move.
FOUR PLAYER CHESS.
Presentation transcript:

Chess Variants (I) (#35) Build a 2-player Chess Game (no-AI) Make it as modular as possible, so that It is easy to adapt to game rule changes (variants) 7 Solutions were proposed by 5 people We were able to get only 2 to run on onyx: 1.Paolo Capriotti /tmp/chess/capriotti/ 2.James Edward Gray II /tmp/chess/gray/chess ruby -Ibin:lib bin/chess

Chess Variants (I) (#35) Capriotti Solution: - One file - 6 Classes: Numeric, Piece, Vector, Board, MoveGenerator, ChessGame - 58 methods lines of code - No comments

Chess Variants (I) (#35) Gray Solution: - 1 Library with 8 classes in 8 files Bishop, Board, Queen, Knight, King, Rook, Piece, Pawn 41 methods 456 lines of pure code 303 comment lines - 8 test classes (in 8 test files) tc_bishop tc_board tc_king tc_knight tc_pawn tc_queen tc_rook tc_all ruby -Itest:lib test/ts_all.rb

(Anil, how many of your 6 minutes are remaining?)

Chess Variants (II) (#36) Challenge: Modify any of the chess game solutions to Ruby Quiz 35 to create any of 6 variant forms: 1.Fibonacci Chess 2.Gun Chess 3.Blackhole Chess 4.Fairy Chess 5.Madhouse Chess 6.Extinction Chess 7.Baseline Chess

Chess Variants (II) (#36) 1.Fibonacci Chess The number of moves a player makes at one time is determined by the Fibonacci number sequence. White begins by making one move, then black responds with one move. White is then allowed two (1 + 1) moves, then black gets three (1 + 2). Putting a player in check ends your turn, even if you have moves remaining. Only 1 Solution posted – by James Edward Gray, II

Chess Variants (II) (#36) 2. Gun Chess Chess is played as normal and the pieces that can be captured are unaltered, but a capturing piece does not move when taking an opposing piece. As long as the move is a legal capture, the opposing piece is simply removed and the capturing piece in untouched. Only 1 Solution posted – by James Edward Gray, II

Chess Variants (II) (#36) 3. Blackhole Chess The squares d5 and f5 are considered "blackholes". Any piece moving onto or over either square vanishes as if it was captured. A King moving onto these squares loses the game. Only 1 Solution posted – by James Edward Gray, II

Chess Variants (II) (#36) 4. Fairy Chess Just like normal chess, except the Queen becomes a Fairy. A Fairy can make the normal moves of a Queen or also jump exactly like a Knight. Only 1 Solution posted – by James Edward Gray, II

Chess Variants (II) (#36) 5. Madhouse Chess When a piece is captured, it is not removed from the board, but instead moved to the square of the capturing player's choice. No solutions posted.

Chess Variants (II) (#36) 6. Extinction Chess Check and checkmate no longer apply. A player wins by capturing all of a single piece type of the opposing army (both of the rooks, for example). Pawns may promote to Kings and a pawn is counted as the piece it promotes to. Promoting your last pawn is a loss, unless it results in an immediate win. No solutions posted.

Chess Variants (II) (#36) 7. Baseline Chess In this variation, the starting position is altered. All pawns still appear on the usual squares, but players take turns placing their major pieces along the back rank before play begins. Castling is not allowed, but the rest of the rules are as normal. No solutions posted.

Chess Variants (II) (#36) 7. Baseline Chess We tried to solve this. First, by modifying the Capriotti Solution After 5 hours, still couldn’t even figure out how to input a valid move Then, by modifying the Gray Solution - Solution built in 2 hours. - created 1 sub class: BaselineBoard < Board - overwrote 1 method – setup() - no input validation yet - wrote 29 lines of code

Chess Variants (II) (#36) 7. Baseline Chess Show the code.

What We Learned More About. Symbols A symbol is a bit like a constant, but you never define it. def next_turn = == :white then :black else :white end - Also, like an enumerated type: (:knight, :bishop, :queen, :pawn, …) - Each is a reference to just one object. Faster to compare than strings. Even Ruby programs needs comments to be maintainable.