Skip to content

Instantly share code, notes, and snippets.

@rouhssaine
rouhssaine / .md
Created December 30, 2025 10:32
MarsRoverKata

Mars Rover Kata

Develop an API that moves a rover around on a grid.

Rules:

  • Initial State: You are given the initial starting point (0,0,N) of a rover.
  • Grid: 0,0 are X,Y co-ordinates on a grid of (10,10).
  • Direction: N is the direction it is facing (i.e. N, S, E, W).

Foo Bar Qix

Write a program that prints numbers from 1 to 100, one number per line. For each printed number, use the following rules :

  • if the number is divisible by 3 or contains 3, replace 3 by "Foo"
  • if the number is divisible by 5 or contains 5, replace 5 by "Bar"
  • if the number is devisible by 7 or contains 7, replace 7 by "Qix"
Example :
@rouhssaine
rouhssaine / .md
Last active January 31, 2024 18:53
KataMarsRover

Kata Mars Rover

Contexte

Vous faites partie d’une équipe en charge de l’exploration de Mars, en envoyant un petit véhicule commandé à distance (appelé Rover) à la surface de la planète.

Vous devez développer un programme qui traduit les instructions envoyées depuis la Terre en instructions compréhensibles par le rover.

Spécifications