AbtaheeAli / assignments

Assignments for Suncoast Developers Guild
0 stars 0 forks source link

06 - 04 - Roshambo! #24

Closed AbtaheeAli closed 4 years ago

AbtaheeAli commented 4 years ago

Create a Roshambo (Rock-Paper-Scissors) game.

Objectives

Background

See the Wikipedia page about Rock, Paper, Scissors

How to get started

Explorer Mode

Part 1

NOTE: Complete part 1 before moving on to part 2

Part 2

Part 3

Adventure Mode

AbtaheeAli commented 4 years ago

https://github.com/AbtaheeAli/roshambo

AbtaheeAli commented 4 years ago

namespace Solution { public static class SpacesRemover { public static string NoSpace(string input) { return input.Replace(" ", ""); } } }

Gist kept timing out on me. No idea why

AbtaheeAli commented 4 years ago

namespace Solution { public static class Program { public static string repeatStr(int n, string s) { var str = ""; for (int index = 0; index < n; index++) { str += s; } return str; } } }

AbtaheeAli commented 4 years ago

public static class Kata { public static string Greet(string language) { switch (language.ToLower()) { case "english": return "Welcome"; case "czech": return "Vitejte"; case "danish": return "Velkomst"; case "dutch": return "Welkom"; case "estonian": return "Tere tulemast"; case "finnish": return "Tervetuloa"; case "flemish": return "Welgekomen"; case "french": return "Bienvenue"; case "german": return "Willkommen"; case "irish": return "Failte"; case "italian": return "Benvenuto"; case "latvian": return "Gaidits"; case "lithuanian": return "Laukiamas"; case "polish": return "Witamy"; case "spanish": return "Bienvenido"; case "swedish": return "Valkommen"; case "welsh": return "Croeso"; default: return "Welcome"; } } }

definitely took the long route for this one but it works!

AbtaheeAli commented 4 years ago

Your homework 06 - 04 - Roshambo! was marked: Meets Expectations

Well done!

“Well done!”