Skip to content

Instantly share code, notes, and snippets.

@0348686
0348686 / input_output_demo.ino
Created February 23, 2026 22:19
Simon Liesinger -- code for semester 1 project 1 year 11 robotics & mechatronics
// C++ code
//
#include <Servo.h>
long duration;
long dist;
int input;
int timer = 0;
bool locked = false;
@0348686
0348686 / gist:ba22f603fb10b247e146da0fe5dc2eac
Created February 23, 2026 02:06
Simon Liesinger -- code for semester 1 project 1 year 11 digital technology
using System;
using System.Collections.Generic;
using System.Data;
using System.Threading;
public class Program
{
public static int[][] wins = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]];
public static List<string> moves = ["scissors", "paper", "rock"];
public const int delay = 0;