Added URL to all handouts
This commit is contained in:
parent
0203f1f018
commit
17e019fd02
@ -11,10 +11,10 @@
|
||||
\usepackage{multicol}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Continued Fractions}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Matthew Gherman and Adam Lott
|
||||
}
|
||||
|
||||
|
@ -10,9 +10,9 @@
|
||||
\usepackage{multicol}
|
||||
|
||||
\uptitlel{Advanced 1A}
|
||||
\uptitler{Spring 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Intro to Cryptography}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -9,9 +9,9 @@
|
||||
\input{tikzset.tex}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Finite Automata}
|
||||
\subtitle{Prepared by \githref{Mark} and Nikita on \today{}}
|
||||
\subtitle{Prepared by Mark and Nikita on \today{}}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -10,9 +10,9 @@
|
||||
\input{tikzset.tex}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Spring 2024}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{De Bruijn Sequences}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -11,9 +11,9 @@
|
||||
\usepackage{mathtools}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Spring 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Definable Sets}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -12,9 +12,9 @@
|
||||
\usetikzlibrary{patterns}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Error-Correcting Codes}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -8,9 +8,9 @@
|
||||
\usepackage{../../resources/macros}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Estimathon}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -8,9 +8,9 @@
|
||||
\input{tikxset}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Algorithms on Graphs: Flow}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Intro to Proofs}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -7,9 +7,9 @@
|
||||
\input{src/tikzset}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2024}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Intro to Quantum Computing}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
\def\ket#1{\left|#1\right\rangle}
|
||||
\def\bra#1{\left\langle#1\right|}
|
||||
|
@ -24,9 +24,9 @@
|
||||
\input{tikzset}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2024}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Intro to Quantum Computing}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
\def\ket#1{\left|#1\right\rangle}
|
||||
\def\bra#1{\left\langle#1\right|}
|
||||
|
@ -38,9 +38,9 @@
|
||||
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Lambda Calculus}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -12,9 +12,9 @@
|
||||
\renewcommand{\arraystretch}{1.2}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Spring 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Lattices}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -67,10 +67,10 @@
|
||||
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Spring 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{To Mock a Mockingbird}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a book of the same name.
|
||||
}
|
||||
|
||||
|
@ -24,10 +24,10 @@
|
||||
\usepackage{units}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2024}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Nonstandard Analysis}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today{} \\
|
||||
Prepared by Mark on \today{} \\
|
||||
Based on handouts by Nikita and Stepan
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
\graphicspath{ {./images/} }
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Origami}
|
||||
\subtitle{Prepared by everyone on \today}
|
||||
|
||||
|
@ -10,9 +10,9 @@
|
||||
\usepackage{tikz}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Pidgeonhole Problems}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -13,10 +13,10 @@
|
||||
\usepackage{circuitikz}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Random Walks and Resistance}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today{} \\
|
||||
Prepared by Mark on \today{} \\
|
||||
Based on a handout by Aaron Anderson
|
||||
}
|
||||
|
||||
|
@ -20,10 +20,10 @@
|
||||
}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Fall 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Retrograde Analysis}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today{} \\
|
||||
Prepared by Mark on \today{} \\
|
||||
Based on books\footnotemark{} by Raymond Smullyan
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
|
||||
\uptitlel{Advanced 1}
|
||||
\uptitler{Summer 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{The Size of Sets}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -8,9 +8,9 @@
|
||||
\usetikzlibrary{calc}
|
||||
|
||||
\uptitlel{Advanced 2}
|
||||
\uptitler{Winter 2023}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Symmetric Groups}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
|
||||
|
||||
|
@ -11,10 +11,10 @@
|
||||
\usepackage{adjustbox}
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{An Introduction to Graph Theory}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Oleg Gleizer
|
||||
}
|
||||
|
||||
|
@ -20,9 +20,9 @@
|
||||
}
|
||||
|
||||
\uptitlel{Advanced 1}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Combinatorics}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -10,10 +10,10 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Graph Theory and Instant Insanity}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Oleg Gleizer
|
||||
}
|
||||
|
||||
|
@ -8,10 +8,10 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Newton's Laws of Motion}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Oleg Gleizer
|
||||
}
|
||||
|
||||
|
@ -14,10 +14,10 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Probability}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Oleg Gleizer
|
||||
}
|
||||
|
||||
|
@ -27,9 +27,9 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{Summer 2022}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Slide Rules}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Vectors 1}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Oleg Gleizer
|
||||
}
|
||||
|
||||
|
@ -5,10 +5,10 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Vectors 2}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
Based on a handout by Oleg Gleizer
|
||||
}
|
||||
|
||||
|
@ -12,10 +12,10 @@
|
||||
|
||||
|
||||
\uptitlel{Intermediate 2}
|
||||
\uptitler{ORMC Summer Sessions}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Warm - Up}
|
||||
\subtitle{
|
||||
Prepared by \githref{Mark} on \today \\
|
||||
Prepared by Mark on \today \\
|
||||
\medskip
|
||||
These problems were originally found in \\
|
||||
Boris Kordemsky's \textit{The Moscow Puzzles}
|
||||
|
@ -9,9 +9,9 @@
|
||||
\usepackage{units}
|
||||
|
||||
\uptitlel{Math Circle Basics}
|
||||
\uptitler{}
|
||||
\uptitler{\smallurl{}}
|
||||
\title{Proof Techniques}
|
||||
\subtitle{Prepared by \githref{Mark} on \today{}}
|
||||
\subtitle{Prepared by Mark on \today{}}
|
||||
|
||||
% Default \implies is ugly
|
||||
\let\implies\Rightarrow
|
||||
|
@ -7,7 +7,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Adders}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: What's an AST?}
|
||||
\subtitle{Prepared by \githref{Mark} on \today. \\ Based on a true story.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today. \\ Based on a true story.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -25,7 +25,8 @@
|
||||
|
||||
|
||||
\title{The Electrician's Warm-Up}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -14,7 +14,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Flip-Flops}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -8,7 +8,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: \texttt{fmod}}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -14,7 +14,8 @@
|
||||
}
|
||||
|
||||
\title{Warm-Up: The Gallery}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
\usepackage{xskak}
|
||||
|
||||
\title{Warm Up: Jump Chess}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
% Source: Khan LSAT prep
|
||||
|
@ -8,7 +8,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Mario Kart}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -9,7 +9,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: A Familiar Concept}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -40,7 +40,8 @@
|
||||
}
|
||||
|
||||
\title{Warm Up: Odd dice}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -6,7 +6,8 @@
|
||||
\usepackage{../../resources/macros}
|
||||
|
||||
\title{Warm-Up: Painting}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -7,7 +7,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Partition Products}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -1,12 +1,14 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
nopagenumber,
|
||||
hidewarning
|
||||
]{../../resources/ormc_handout}
|
||||
\usepackage{../../resources/macros}
|
||||
|
||||
\title{Warm-Up: Prime Factors}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
|
||||
|
||||
\title{The Sysadmin's Warm-Up}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
|
||||
\begin{document}
|
||||
|
@ -16,7 +16,8 @@
|
||||
|
||||
|
||||
\title{The Regex Warm-Up}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -7,7 +7,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Exact answers}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
233
Misc/Warm-Ups/snake.tex
Executable file
233
Misc/Warm-Ups/snake.tex
Executable file
@ -0,0 +1,233 @@
|
||||
\documentclass[
|
||||
solutions,
|
||||
singlenumbering,
|
||||
nopagenumber
|
||||
]{../../resources/ormc_handout}
|
||||
\usepackage{../../resources/macros}
|
||||
|
||||
\usepackage{ifthen}
|
||||
|
||||
\usetikzlibrary{arrows.meta}
|
||||
\usetikzlibrary{shapes.geometric}
|
||||
\usetikzlibrary{patterns}
|
||||
|
||||
% We put nodes in a separate layer, so we can
|
||||
% slightly overlap with paths for a perfect fit
|
||||
\pgfdeclarelayer{nodes}
|
||||
\pgfdeclarelayer{path}
|
||||
\pgfsetlayers{main,nodes}
|
||||
|
||||
% Layer settings
|
||||
\tikzset{
|
||||
% Layer hack, lets us write
|
||||
% later = * in scopes.
|
||||
layer/.style = {
|
||||
execute at begin scope={\pgfonlayer{#1}},
|
||||
execute at end scope={\endpgfonlayer}
|
||||
},
|
||||
%
|
||||
% Arrowhead tweak
|
||||
>={Latex[ width=2mm, length=2mm ]},
|
||||
%
|
||||
% Labels inside edges
|
||||
label/.style = {
|
||||
rectangle,
|
||||
% For automatic red background in solutions
|
||||
fill = \ORMCbgcolor,
|
||||
draw = none,
|
||||
rounded corners = 0mm
|
||||
},
|
||||
%
|
||||
% Nodes
|
||||
main/.style = {
|
||||
draw,
|
||||
circle,
|
||||
fill = white,
|
||||
line width = 0.4mm,
|
||||
text width = 5mm,
|
||||
align = center
|
||||
},
|
||||
accept/.style = {
|
||||
draw,
|
||||
circle,
|
||||
fill = white,
|
||||
double,
|
||||
double distance = 0.5mm,
|
||||
line width = 0.4mm,
|
||||
text width = 5mm,
|
||||
align = center
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
\title{Warm-Up: Snakes}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\newcounter{mycounter}
|
||||
\setcounter{mycounter}{0}
|
||||
\newif\iftmp
|
||||
|
||||
\begin{center}
|
||||
\begin{tikzpicture}[scale = 0.6]
|
||||
\begin{scope}[layer = nodes]
|
||||
\foreach \r in {1,3,5,7,9} {
|
||||
\foreach \i in {1,...,10} {
|
||||
\pgfmathparse{Mod(\i-1,10)}
|
||||
\let\x\pgfmathresult
|
||||
\pgfmathparse{div(\i-1,10) + \r}
|
||||
\let\y\pgfmathresult
|
||||
\pgfmathparse{(\r-1)*10+\i}
|
||||
\let\z\pgfmathresult
|
||||
|
||||
\tmpfalse
|
||||
\pgfmathapproxequalto{\z}{4}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{5}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{19}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{21}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{28}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{31}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{35}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{44}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{47}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{52}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{53}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{59}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{70}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{76}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{81}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{88}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{98}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
|
||||
|
||||
\stepcounter{mycounter}
|
||||
\iftmp
|
||||
\node[accept] (\arabic{mycounter}) at (2*\x, 2*\y) {
|
||||
$\pgfmathprintnumber{\z}$
|
||||
};
|
||||
\else
|
||||
\node[main] (\arabic{mycounter}) at (2*\x, 2*\y) {
|
||||
$\pgfmathprintnumber{\z}$
|
||||
};
|
||||
\fi
|
||||
}
|
||||
|
||||
\foreach \i in {1,...,10} {
|
||||
\pgfmathparse{9 - Mod(\i-1,10)}
|
||||
\let\x\pgfmathresult
|
||||
\pgfmathparse{div(\i-1,10) + \r + 1}
|
||||
\let\y\pgfmathresult
|
||||
\pgfmathparse{\r*10+\i}
|
||||
\let\z\pgfmathresult
|
||||
|
||||
\tmpfalse
|
||||
\pgfmathapproxequalto{\z}{4}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{5}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{19}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{21}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{28}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{31}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{35}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{44}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{47}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{52}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{53}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{59}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{70}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{76}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{81}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{88}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\else\pgfmathapproxequalto{\z}{98}
|
||||
\ifpgfmathcomparison\tmptrue
|
||||
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
|
||||
|
||||
\stepcounter{mycounter}
|
||||
|
||||
\iftmp
|
||||
\node[accept] (\arabic{mycounter}) at (2*\x, 2*\y) {
|
||||
$\pgfmathprintnumber{\z}$
|
||||
};
|
||||
\else
|
||||
\node[main] (\arabic{mycounter}) at (2*\x, 2*\y) {
|
||||
$\pgfmathprintnumber{\z}$
|
||||
};
|
||||
\fi
|
||||
}
|
||||
}
|
||||
\end{scope}
|
||||
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(4) -- +(1,0) -- +(1, 13) -- +(3, 13) -> (75);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(5) -- +(0,-1) -- +(1,-1) -- +(1,1) -- (15);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(19) -- +(1, 0) -- +(1, 5) -- + (-1, 5) -- (41);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(21) -- +(1, 0) -- +(1,-5) -- +(3, -5) -- (3);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(28) -- +(1,0) -- +(1,3) -- +(3,3) -- (50);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(31) -- +(1,0) -- +(1,-7) -- +(-3, -7) -- (8);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(35) -- +(-1,0) -- +(-1,11) -- (96);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(44) -- +(-1,0) -- +(-1,7) -- +(-3,7) -- (82);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(47) -- +(1,0) -- +(1,-3) -- +(5,-3) -- (30);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(52) -- +(-1, 0) -- +(-1, -1) -- +(-5,-1) -- +(-5,-5) -- +(-11,-5) -- (23);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(53) -- +(-1,0) -- +(-1,7) -- (94);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(59) -- +(-1, 0) -- +(-1,1) -- +(-3,1) -- +(-3,9) -- +(7, 9) -- (95);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(70) -- +(-1, 0) -- +(-1, 5) -- (91);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(76) -- +(-1, 0) -- +(-1,-1) -- +(-5,-1) -- +(-5,-5) -- +(-7,-5) -- (41);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(81) -- +(0, -1) -- +(3, -1) -- +(3, -3) -- (62);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(88) -- +(1, 0) -- +(1, -3) -- +(-1,-3) -- (67);
|
||||
\draw[->, line width = 0.6mm, rounded corners = 2mm]
|
||||
(98) -- +(0, 1.5) -- +(15.5, 1.5) -- +(15.5,-15) -- +(13, -15) -- (12);
|
||||
\end{tikzpicture}
|
||||
\end{center}
|
||||
|
||||
\end{document}
|
@ -9,7 +9,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Fuse Timers}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -6,7 +6,8 @@
|
||||
\usepackage{../../resources/macros}
|
||||
|
||||
\title{Warm-Up: Travellers}
|
||||
\subtitle{Prepared by \githref{Mark} on \today}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -40,7 +40,8 @@
|
||||
% The player who makes a three in a row of Xs (or black chips) wins the game
|
||||
|
||||
\title{Warm-Up: Big-Tac-Toe}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -16,7 +16,8 @@
|
||||
|
||||
|
||||
\title{Warm-Up: Wild Tic-Tac-Toe}
|
||||
\subtitle{Prepared by \githref{Mark} on \today.}
|
||||
\uptitler{\smallurl{}}
|
||||
\subtitle{Prepared by Mark on \today.}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
|
||||
% Link to this repo, used in titles
|
||||
\newcommand{\githref}[1]{\href{https://betalupi.com}{#1}}
|
||||
\newcommand{\smallurl}{\small\texttt{\href{https://betalupi.com/handouts}{https://betalupi.com/handouts}}}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user