Skip to content

SchoolOfCode/week-6-hackathon-Hannalysis

 
 

Repository files navigation

Team: MAC-10

Counter Strike: Code Katas

Overview: An easy and a more challenging Kata thematically based on Counter Strike: Source 2 of 4 challenges are provided inside this repo.

For the other two challenges, please visit and download my teammates repo here:
https://github.com/SchoolOfCode/week-6-hackathon-fergus-g


Installation

Inside your VScode terminal, enter the following:

  npm install --save-dev vitest

Challenges & Context

Kata 1 [Easy] : Damager Modifier Challenge: damageBuff

Kata 2: [Challenging] Team Weapon Sorter: teamWeapon

To check whether you have succeeded the challenge, ensure to type in the following command inside the terminal:

  npx vitest

Documentation

Fist to Five - Fergus: Green | Hannah: Light Blue

Fist to Five Table


Decision Table

For teamWeapon Kata only

Small Decision Table for 2nd Kata


Boundary Value Analysis Tables

damageBuff Kata

Test Case Input Output
TC#1 A positive number 50 75
TC#2 Another positive number, higher amount 100 150
TC#3 Another positive number, minimum amount 1 1.5
TC#4 When input is 0 0 1.5
TC#5 When input is negative numbers -33 1.5
TC#6 When input number is posed as a string "50" 75

teamWeapon Kata

Test Case Input Output
TC#7 Terrorist only weapon test 1 "MAC-10" "Only Terrorists can equip the MAC-10."
TC#8 Terrorist only weapon test 2 "AK47" "Only Terrorists can equip the AK47."
TC#9 Counter-Terrorist only weapon test 1 "TMP" "Only Counter-Terrorists can equip the TMP."
TC#10 Counter-Terrorist only weapon test 2 "M4A1 Carbine" "Only Counter-Terrorists can equip the M4A1 Carbine."
TC#11 Both teams weapon test 1 "P90" "Both teams can equip the P90."
TC#12 Both teams weapon test 2 "Smoke Grenade" "Both teams can equip the Smoke Grenade."
TC#13 A weapon neither team can equip "M60" "Neither teams can equip that weapon."

Other Information

Hackathon Presentation Slides


About

bootcamp-18-week-6-hackathon-workshop_make-your-own-codewars created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%