The Triwizard Maze. Author: Shambhavi Srinivasa Concepts to be applied for the problem: Program Specification: Introduction

Similar documents
7:00PM 12:00AM

BOLT ACTION COMBAT PATROL

WARHAMMER FANTASY IT s HOW YOU USE IT TOURNAMENT

Introduction. Contents

Battle. Table of Contents. James W. Gray Introduction

Tarot Combat. Table of Contents. James W. Gray Introduction

THE RULES 1 Copyright Summon Entertainment 2016

Scenarios will NOT be announced beforehand. Any scenario from the Clash of Kings 2018 book as well as CUSTOM SCENARIOS is fair game.

SATURDAY APRIL :30AM 5:00PM 7:00PM :00AM

RULES DUNGEON TWISTER TM EXPANSION #1. ASMODEE editions LLC

(Legion) A Strategic Board Game for 2 players

Overview 1. Table of Contents 2. Setup 3. Beginner Walkthrough 5. Parts of a Card 7. Playing Cards 8. Card Effects 10. Reclaiming 11.

Do not lose this packet! It contains all necessary missions and results sheets required for you to participate in today s tournament.

I-95 GAMERS. Domination Missions

The Limits of Game Playing. J. K. Rowling s Harry Potter and the Sorcerer s Stone & Harry Potter and the Goblet of Fire

Project 1: A Game of Greed

EPIC ARMAGEDDON CHALLENGE

Please be sure to title your "AoS List" with your name this same mail box can get up to 200 army lists in one year.

Underleague Game Rules

4.4.11a Tweaked rule to bring it in line with c (overassigning damage is legal, breakthrough damage is not mandatory)

ARTIFICIAL INTELLIGENCE (CS 370D)

Table of Contents. TABLE OF CONTENTS 1-2 INTRODUCTION 3 The Tomb of Annihilation 3. GAME OVERVIEW 3 Exception Based Game 3

On the day you also need to bring :

WARHAMMER 40K COMBAT PATROL

The Arena v1.0 An Unofficial expansion for Talisman by Games Workshop Copyright Alchimera Games 2012

WARHAMMER FANTASY REGIMENTS OF RENOWN

CONTENTS. 1. Number of Players. 2. General. 3. Ending the Game. FF-TCG Comprehensive Rules ver.1.0 Last Update: 22/11/2017

TUMULT NOVEMBEr 2017 X-WINg DOUBLES TOUrNAMENT. Lists need to be submitted by 14 November 2017 V 1.1. Sponsored by

Shaun Austin Jim Hartman

THURSDAY APRIL :00PM 10:00PM 5:00PM :00AM 3:00PM

Critical Run Tournament Event Outline

Welcome, fellow traveller, to the world of Stratos! Since its discovery by a wandering sailor, this fabled land is now claimed by five rival tribes.

Introduction and Thanks

WRITTEN BY ED TEIXEIRA INTERIOR ARTWORK BY JAMES SMYTH COVER BY PAUL KIME DIGITALLY EDITED BY CRAIG ANDREWS

SCENARIO LIST. (In no particular order) SEIZE GROUND. - As per page #91 of the Warhammer 40,000 Rulebook -

DEFENCE OF THE ANCIENTS

Tonight you sit quietly in a dark corner of the Inn s large common room, with a cup of ale and a piece of hard, brown bread in front of you.

WARHAMMER ANCIENTS DOUBLES TOURNAMENT

SATURDAY APRIL :30AM 5:00PM

SET COMPETITIONS FACILITIES AND SUPPLIES NEEDED. STAFFING There are two different SET competition formats:

User Guide for Teachers

The 2nd Schaumburg Beach Head

Mobile Legends Bang Bang Diamonds Hacks and Strategy $97 Underground Diamonds Hacks

WARHAMMER: AGE OF SIGMAR VANGUARD TOURNAMENT #1

Game Theory and its Applications

WARHAMMER FANTASY THE BIG BRAWL

::

Mighty Planetary Empires

Hogwarts School. Hogwarts School. of Witchcraft and Wizardry

P a g e Realms v1.2 Copyright 2010 Ignazio Corrao

CMSC 671 Project Report- Google AI Challenge: Planet Wars

Computer Science 25: Introduction to C Programming

1 Introduction. 1.1 Game play. CSC 261 Lab 4: Adversarial Search Fall Assigned: Tuesday 24 September 2013

2003 Hasbro. All rights reserved. Distributed in the United Kingdom by Hasbro UK Ltd., Caswell Way, Newport, Gwent NP9 0YH. Distributed in the U.S.A.

CPS331 Lecture: Search in Games last revised 2/16/10

Requirements Specification

Contents. Introduction

Airship! Airship Creation

Dota2 is a very popular video game currently.

QUICKSTART. Game Modes. Combat Roles. Customizing and Learning. Assembling your Team. PvP - Competitive: PvE - Cooperative:

Lightseekers Trading Card Game Rules

In the event that rules differ in the app from those described here, follow the app rules.

Game Components double-sided level sheets showing 42 game levels as follows: 2 5 screens (transparent sheets).

Starting Wealth: 5d6 10 gil (average 175 gil.) In addition, each character begins play with an outfit worth 10 gil or less.

Bible Battles Trading Card Game OFFICIAL RULES. Copyright 2009 Bible Battles Trading Card Game

2017 Bugeater GT Warhammer 40,000 Friendly Doubles Tournament

Wild. Overlay Wild. Bonus Game. Football: Champions Cup Game Rules

THE LABYRINTH OF ETERNITY

CS 371M. Homework 2: Risk. All submissions should be done via git. Refer to the git setup, and submission documents for the correct procedure.

SATURDAY APRIL :30AM 5:00PM

Harry Potter Halls Of Hogwarts Game

GottaCon 2014 Warhammer Event Rules. War of the Ring: Fantasy and 40K: Friday: 6:30pm - 8:00pm Game 1

Dragon Phoenix Games

CS 312 Problem Set 6: λ-shark (CTF)

2006 Canadian Computing Competition: Junior Division. Sponsor:

Changes and additions new to the 4/6/17 version are highlighted throughout the document.

2018 Battle for Salvation Grand Tournament Pack- Draft

StarCraft II: World Championship Series 2019 North America and Europe Challenger Rules

JHU Robotics Challenge 2015

The Sorcerer s Chamber

PUBLISHED DUNGEON TWISTER EXPANSION SETS

StarCraft II: World Championship Series 2018 North America and Europe Challenger Rules

How can I count arrangements?

Defenders of the Realm: Battlefields 1. Player seating arrangement -

ARMY LISTS AND CONSTRUCTION PREPARATION SPORTSMANSHIP. Tournament Guidelines

CS 380: ARTIFICIAL INTELLIGENCE

FULL RULEBOOK GAME FLOW TABLE OF CONTENTS. Playing Scenarios... 17

FRIDAY APRIL :30AM 5:00PM

Bachelor Project Major League Wizardry: Game Engine. Phillip Morten Barth s113404

OFFICIAL RULEBOOK Version 8.0

HORUS HERESY: BETRAYAL AT CALTH BOX BASH

SWORDS & WIZARDRY ATTACK TABLE Consult this table whenever an attack is made. Find the name of the attacking piece in the left hand column, the name

CS 380: ARTIFICIAL INTELLIGENCE ADVERSARIAL SEARCH. Santiago Ontañón

Miniatures 800 Point

Robotic Systems Challenge 2013

Primo Victoria. A fantasy tabletop miniatures game Expanding upon Age of Sigmar Rules Compatible with Azyr Composition Points

The Sweet Learning Computer

The Stygian Society Rules v2.2

2D Platform. Table of Contents

DUNGEON CRAWLER STARTERS GUIDE

Transcription:

The Triwizard Maze Author: Shambhavi Srinivasa (sham.ucalgary@gmail.com) Concepts to be applied for the problem: 1) Inheritance 2) Software reuse Program Specification: Introduction The Triwizard Tournament is a magical contest held between the three largest wizarding schools of Europe: Hogwarts School of Witchcraft and Wizardry, Durmstrang Institute, and the Beauxbatons Academy of Magic. The first Tournament was held in approximately 1294, with each of the three schools being represented by one Champion apiece. Selected Champions compete in three tasks designed to test magical ability, intelligence and courage, traditionally judged by the Headmasters or Headmistresses of the competing schools. Champions compete for the honour and glory of winning the Tournament, and the prize for the victor is the Triwizard Cup and a monetary prize. The 2009 Triwizard tournament was different because of the fact that it has four competeting champions : Harry Potter, a wizard whose name was chosen by the Goblet of Fire despite being under-aged and no one nominating his name. Two tasks have been completed and Harry has braved his way through them emerging at the top. Harry is faced with the third and final task: Making his way through the treacherous Triwizard maze at the end of which lies the Triwizard cup and the glory of victory.

Game description 1) Starting Harry starts at the beginning of the maze (0,0). He needs to strategically make his way to the other corner of the maze where the Triwizard cup is located. In order to help him in his quest, he is awarded: 100 health points An attack index of 10 which signifies that Harry can attack his adversary causing a damage of 10 to the health of the adversary. A defence index of 10. This defence index can increase in increments of 10 whenever Harry picks up a Shield. The amount of attack by an adversary towards Harry will be scaled by the defence index once Harry picks up the Shields. 20 spell points which Harry can use to cast spells against his adversaries. Depending upon the type of adversary, he will be able to either charm them or blind them. He will be able to increase his spell points by picking up Scrolls. 2) Adversaries On his way through the maze Harry may encounter adversaries who are randomly patrolling the maze. These adversaries are of varying degree of badness. Depending upon their badness quotient, they also come with an attack index and a defence index. Of course Harry has some amount of defence available to him. Name DoB* Attack Index Defence Index Defence Boggart 2 10 10 Attack + Charm + Blind Blast-ended Skrewts 6 20 15 Attack + Charm But no Blind Dementors 9 25 20 Only Attack *DoB Degree of Badness 1-3: Not so bad; 4-7: Quite bad; 8-10: Really really bad All adversaries start with 100 health points. 3) Defence While threading through the maze, Harry can defend himself against his adversaries using his own attack index and spell points. Each time Harry casts spell, his spell points are decremented by 10. Depending upon the type of adversary, Harry can cast the following spells: 1) Charm Charming an adversary would disable its attack capability for some amount of time. 2) Blind Blinding an adversary would disable its attack capability as well as make it immobile for some amount of time. The time for which these spells will be effective depends upon the degree of badness. The more the degree of badness, the less amount of time they will be effective.

4) Artefacts Harry can pick up various artefacts which add to his health, defence index, attack index as well as to his spell points. The following are the artefacts available: Name Health artefact Shield artefact Scroll artefact Sword artefact Benefit +10 Health points +10 Defence index +10 Spell points +5 Attack index 5) Movement and Attack Harry is allowed to move to his adjacent sectors. Hence, he needs to strategically inch his way through the maze. He can pick up an artefact by moving directly onto the sector in which the object is present. When he is adjacent to an adversary, he will be attacked and he can choose to attack as well by using the menu. MOVEMENT MENU: OPTIONS 7 8 9 4 6 1 2 3 To quit the game, enter a negative value. Choice: 6) How the game ends Harry wins if he reaches the Triwizard Cup at the end of the maze. A game may also end if in the unfortunate scenario Harry loses all this health and dies. 7) The maze The maze will look something like this: 0 1 2 3 4 5 6 7 8 9 0 H 1 2 D 3 + B 4 B S 5 + 6 D S 7 B + 8 S 9

You can correctly interpret it using the following symbol table: Symbol Interpretation H Harry Potter (That s you!) B Boggart S Blast-ended Skrewt D Dementor + Health artefact Sword artefact Shield artefact Scroll artefact Triwizard cup (End of the maze) Your mission for this assignment: You are to implement the Triwizard maze keeping in mind the above specifications. Of course you will need to use the concept of Inheritance in your implementation. Your program should include the following classes: GameBaseObject: This class should be the base class for any object to be represented in the maze. It should be extended for any game character or artefact to be represented in the maze. GameCharacter: This will act as the parent class for all the game characters. It will have the attributes and methods that are common to all the game characters. Adversary: This will be a child class of the class GameCharacter and will common functionality that are shared by all the adversaries. Artefact: This will act as the parent class for all the artefacts and will have their common functionality. TriwizardMaze: This class initializes the TriWizard maze. It also has methods for refreshing, clearing as well displaying the maze. CommandProcessor: This class essentially processes the "move" made by the opponent as well as Harry and responds accordingly. This has the combat mode defined in it. It also has methods for general display of menus, getting input for menu choice and checking if the character can in fact make the move on the sector. GameThread: This will contain the main method and its functionality is confined to only this along with declaring a few class instances. Your program should extend the Adversary class to define Boggart, BlastEndedSkrewt and Dementors. Similarly the base class Artefact should be extended to model the Sword, Shield, Scroll and the Health artefacts. Your implementation should follow good software design principles including: Ease of use and understanding Good documentation Reasonable error handling

A visual interface for the game play Submitting your work: You don t need to submit your work! It s just a practise assignment for you get an idea of how the concept of Inheritance works and delve deeper into the Object Oriented programming. You are expected to read the program specifications, come up with an overall design for your program. One possible solution is already provided to you in the form of a UML diagram. Going ahead with coding this assignment with your own solution in mind is highly recommended as it will give you a clearer idea of many concepts and its just plain fun. Resources for background information: 1) http://harrypotter.wikia.com/wiki/triwizard_tournament