Added URL to all handouts

This commit is contained in:
Mark 2024-04-01 21:50:50 -07:00
parent 0203f1f018
commit 17e019fd02
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
53 changed files with 346 additions and 92 deletions

View File

@ -11,10 +11,10 @@
\usepackage{multicol} \usepackage{multicol}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2023} \uptitler{\smallurl{}}
\title{Continued Fractions} \title{Continued Fractions}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Matthew Gherman and Adam Lott Based on a handout by Matthew Gherman and Adam Lott
} }

View File

@ -10,9 +10,9 @@
\usepackage{multicol} \usepackage{multicol}
\uptitlel{Advanced 1A} \uptitlel{Advanced 1A}
\uptitler{Spring 2022} \uptitler{\smallurl{}}
\title{Intro to Cryptography} \title{Intro to Cryptography}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -9,9 +9,9 @@
\input{tikzset.tex} \input{tikzset.tex}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2022} \uptitler{\smallurl{}}
\title{Finite Automata} \title{Finite Automata}
\subtitle{Prepared by \githref{Mark} and Nikita on \today{}} \subtitle{Prepared by Mark and Nikita on \today{}}
\begin{document} \begin{document}

View File

@ -10,9 +10,9 @@
\input{tikzset.tex} \input{tikzset.tex}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Spring 2024} \uptitler{\smallurl{}}
\title{De Bruijn Sequences} \title{De Bruijn Sequences}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -11,9 +11,9 @@
\usepackage{mathtools} \usepackage{mathtools}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Spring 2023} \uptitler{\smallurl{}}
\title{Definable Sets} \title{Definable Sets}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -12,9 +12,9 @@
\usetikzlibrary{patterns} \usetikzlibrary{patterns}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2022} \uptitler{\smallurl{}}
\title{Error-Correcting Codes} \title{Error-Correcting Codes}
\subtitle{Prepared by \githref{Mark} on \today} \subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -8,9 +8,9 @@
\usepackage{../../resources/macros} \usepackage{../../resources/macros}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2023} \uptitler{\smallurl{}}
\title{Estimathon} \title{Estimathon}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -8,9 +8,9 @@
\input{tikxset} \input{tikxset}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2022} \uptitler{\smallurl{}}
\title{Algorithms on Graphs: Flow} \title{Algorithms on Graphs: Flow}
\subtitle{Prepared by \githref{Mark} on \today} \subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -8,9 +8,9 @@
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2023} \uptitler{\smallurl{}}
\title{Intro to Proofs} \title{Intro to Proofs}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -7,9 +7,9 @@
\input{src/tikzset} \input{src/tikzset}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2024} \uptitler{\smallurl{}}
\title{Intro to Quantum Computing} \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\ket#1{\left|#1\right\rangle}
\def\bra#1{\left\langle#1\right|} \def\bra#1{\left\langle#1\right|}

View File

@ -24,9 +24,9 @@
\input{tikzset} \input{tikzset}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2024} \uptitler{\smallurl{}}
\title{Intro to Quantum Computing} \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\ket#1{\left|#1\right\rangle}
\def\bra#1{\left\langle#1\right|} \def\bra#1{\left\langle#1\right|}

View File

@ -38,9 +38,9 @@
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2023} \uptitler{\smallurl{}}
\title{Lambda Calculus} \title{Lambda Calculus}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -12,9 +12,9 @@
\renewcommand{\arraystretch}{1.2} \renewcommand{\arraystretch}{1.2}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Spring 2023} \uptitler{\smallurl{}}
\title{Lattices} \title{Lattices}
\subtitle{Prepared by \githref{Mark} on \today} \subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -67,10 +67,10 @@
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Spring 2023} \uptitler{\smallurl{}}
\title{To Mock a Mockingbird} \title{To Mock a Mockingbird}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a book of the same name. Based on a book of the same name.
} }

View File

@ -24,10 +24,10 @@
\usepackage{units} \usepackage{units}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2024} \uptitler{\smallurl{}}
\title{Nonstandard Analysis} \title{Nonstandard Analysis}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today{} \\ Prepared by Mark on \today{} \\
Based on handouts by Nikita and Stepan Based on handouts by Nikita and Stepan
} }

View File

@ -8,7 +8,7 @@
\graphicspath{ {./images/} } \graphicspath{ {./images/} }
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2022} \uptitler{\smallurl{}}
\title{Origami} \title{Origami}
\subtitle{Prepared by everyone on \today} \subtitle{Prepared by everyone on \today}
@ -218,12 +218,12 @@
\note{Proposed by Nikita} \note{Proposed by Nikita}
\begin{enumerate}[label = \textbf{\alph{enumi}:}] \begin{enumerate}[label = \textbf{\alph{enumi}:}]
\item Construct a regular hexagon using a ruler and compass. \item Construct a regular hexagon using a ruler and compass.
\item Cut the triangle with angles $72^\circ$, $72^\circ$, $36^\circ$ into 2 isosceles triangles. \item Cut the triangle with angles $72^\circ$, $72^\circ$, $36^\circ$ into 2 isosceles triangles.
\item Using triangle similarity, prove that the ratio of the sides in this triangle \item Using triangle similarity, prove that the ratio of the sides in this triangle
is equal to the golden ratio $\varphi = \frac{1+\sqrt{5}}{2}$. is equal to the golden ratio $\varphi = \frac{1+\sqrt{5}}{2}$.
\item Find a way to construct a regular pentagon using only a ruler and compass. \item Find a way to construct a regular pentagon using only a ruler and compass.
\end{enumerate} \end{enumerate}

View File

@ -10,9 +10,9 @@
\usepackage{tikz} \usepackage{tikz}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2022} \uptitler{\smallurl{}}
\title{Pidgeonhole Problems} \title{Pidgeonhole Problems}
\subtitle{Prepared by \githref{Mark} on \today} \subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -13,10 +13,10 @@
\usepackage{circuitikz} \usepackage{circuitikz}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2023} \uptitler{\smallurl{}}
\title{Random Walks and Resistance} \title{Random Walks and Resistance}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today{} \\ Prepared by Mark on \today{} \\
Based on a handout by Aaron Anderson Based on a handout by Aaron Anderson
} }

View File

@ -20,10 +20,10 @@
} }
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Fall 2023} \uptitler{\smallurl{}}
\title{Retrograde Analysis} \title{Retrograde Analysis}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today{} \\ Prepared by Mark on \today{} \\
Based on books\footnotemark{} by Raymond Smullyan Based on books\footnotemark{} by Raymond Smullyan
} }
@ -37,7 +37,7 @@
} }
\input{parts/01 intro} \input{parts/01 intro}
\input{parts/02 easy} \input{parts/02 easy}
\input{parts/03 medium} \input{parts/03 medium}
\input{parts/04 hard} \input{parts/04 hard}

View File

@ -9,9 +9,9 @@
\uptitlel{Advanced 1} \uptitlel{Advanced 1}
\uptitler{Summer 2023} \uptitler{\smallurl{}}
\title{The Size of Sets} \title{The Size of Sets}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
\begin{document} \begin{document}

View File

@ -8,9 +8,9 @@
\usetikzlibrary{calc} \usetikzlibrary{calc}
\uptitlel{Advanced 2} \uptitlel{Advanced 2}
\uptitler{Winter 2023} \uptitler{\smallurl{}}
\title{Symmetric Groups} \title{Symmetric Groups}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}

View File

@ -11,10 +11,10 @@
\usepackage{adjustbox} \usepackage{adjustbox}
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{An Introduction to Graph Theory} \title{An Introduction to Graph Theory}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer Based on a handout by Oleg Gleizer
} }

View File

@ -20,9 +20,9 @@
} }
\uptitlel{Advanced 1} \uptitlel{Advanced 1}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Combinatorics} \title{Combinatorics}
\subtitle{Prepared by \githref{Mark} on \today} \subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -10,10 +10,10 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Graph Theory and Instant Insanity} \title{Graph Theory and Instant Insanity}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer Based on a handout by Oleg Gleizer
} }

View File

@ -8,10 +8,10 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Newton's Laws of Motion} \title{Newton's Laws of Motion}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer Based on a handout by Oleg Gleizer
} }

View File

@ -14,10 +14,10 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Probability} \title{Probability}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer Based on a handout by Oleg Gleizer
} }

View File

@ -27,9 +27,9 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{Summer 2022} \uptitler{\smallurl{}}
\title{Slide Rules} \title{Slide Rules}
\subtitle{Prepared by \githref{Mark} on \today} \subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -6,10 +6,10 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Vectors 1} \title{Vectors 1}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer Based on a handout by Oleg Gleizer
} }

View File

@ -5,10 +5,10 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Vectors 2} \title{Vectors 2}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer Based on a handout by Oleg Gleizer
} }

View File

@ -12,10 +12,10 @@
\uptitlel{Intermediate 2} \uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions} \uptitler{\smallurl{}}
\title{Warm - Up} \title{Warm - Up}
\subtitle{ \subtitle{
Prepared by \githref{Mark} on \today \\ Prepared by Mark on \today \\
\medskip \medskip
These problems were originally found in \\ These problems were originally found in \\
Boris Kordemsky's \textit{The Moscow Puzzles} Boris Kordemsky's \textit{The Moscow Puzzles}

View File

@ -9,9 +9,9 @@
\usepackage{units} \usepackage{units}
\uptitlel{Math Circle Basics} \uptitlel{Math Circle Basics}
\uptitler{} \uptitler{\smallurl{}}
\title{Proof Techniques} \title{Proof Techniques}
\subtitle{Prepared by \githref{Mark} on \today{}} \subtitle{Prepared by Mark on \today{}}
% Default \implies is ugly % Default \implies is ugly
\let\implies\Rightarrow \let\implies\Rightarrow

View File

@ -7,7 +7,8 @@
\title{Warm-Up: Adders} \title{Warm-Up: Adders}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -12,7 +12,8 @@
\title{Warm-Up: What's an AST?} \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} \begin{document}

View File

@ -25,7 +25,8 @@
\title{The Electrician's Warm-Up} \title{The Electrician's Warm-Up}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -14,7 +14,8 @@
\title{Warm-Up: Flip-Flops} \title{Warm-Up: Flip-Flops}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}
@ -30,7 +31,7 @@
\begin{tikzpicture}[circuit logic US, scale=2] \begin{tikzpicture}[circuit logic US, scale=2]
% tikz notes: % tikz notes:
% -|: Select vertical of first and horizontal of second % -|: Select vertical of first and horizontal of second
% Gates % Gates
\node[or gate] (or) at (0,0) {\tiny\texttt{or}}; \node[or gate] (or) at (0,0) {\tiny\texttt{or}};
\node[not gate] (not) at (0,-0.8) {\tiny\texttt{not}}; \node[not gate] (not) at (0,-0.8) {\tiny\texttt{not}};
@ -102,7 +103,7 @@
\begin{solution} \begin{solution}
This is another S-R (\say{set-reset}) latch. This is another S-R (\say{set-reset}) latch.
\end{solution} \end{solution}
\vfill \vfill
\pagebreak \pagebreak
@ -122,8 +123,8 @@
\begin{center} \begin{center}
\begin{tikzpicture}[circuit logic US, scale=2] \begin{tikzpicture}[circuit logic US, scale=2]
% Gates % Gates
\node[nand gate] (nandc) at (1.4,0) {\tiny\texttt{nand}}; \node[nand gate] (nandc) at (1.4,0) {\tiny\texttt{nand}};
\node[nand gate] (nandd) at (1.4,-1.2) {\tiny\texttt{nand}}; \node[nand gate] (nandd) at (1.4,-1.2) {\tiny\texttt{nand}};

View File

@ -8,7 +8,8 @@
\title{Warm-Up: \texttt{fmod}} \title{Warm-Up: \texttt{fmod}}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -14,7 +14,8 @@
} }
\title{Warm-Up: The Gallery} \title{Warm-Up: The Gallery}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -12,7 +12,8 @@
\usepackage{xskak} \usepackage{xskak}
\title{Warm Up: Jump Chess} \title{Warm Up: Jump Chess}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
% Source: Khan LSAT prep % Source: Khan LSAT prep

View File

@ -8,7 +8,8 @@
\title{Warm-Up: Mario Kart} \title{Warm-Up: Mario Kart}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -9,7 +9,8 @@
\title{Warm-Up: A Familiar Concept} \title{Warm-Up: A Familiar Concept}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -40,7 +40,8 @@
} }
\title{Warm Up: Odd dice} \title{Warm Up: Odd dice}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}
@ -99,7 +100,7 @@
\node[main] (d) at (1, -2) {$d$}; \node[main] (d) at (1, -2) {$d$};
\node[main] (e) at (-1, -2) {$e$}; \node[main] (e) at (-1, -2) {$e$};
\end{scope} \end{scope}
\draw[->] \draw[->]
(a) edge (b) (a) edge (b)
(b) edge (c) (b) edge (c)

View File

@ -6,7 +6,8 @@
\usepackage{../../resources/macros} \usepackage{../../resources/macros}
\title{Warm-Up: Painting} \title{Warm-Up: Painting}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -7,7 +7,8 @@
\title{Warm-Up: Partition Products} \title{Warm-Up: Partition Products}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -1,12 +1,14 @@
\documentclass[ \documentclass[
solutions, solutions,
singlenumbering, singlenumbering,
nopagenumber nopagenumber,
hidewarning
]{../../resources/ormc_handout} ]{../../resources/ormc_handout}
\usepackage{../../resources/macros} \usepackage{../../resources/macros}
\title{Warm-Up: Prime Factors} \title{Warm-Up: Prime Factors}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -12,7 +12,8 @@
\title{The Sysadmin's Warm-Up} \title{The Sysadmin's Warm-Up}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -16,7 +16,8 @@
\title{The Regex Warm-Up} \title{The Regex Warm-Up}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -7,7 +7,8 @@
\title{Warm-Up: Exact answers} \title{Warm-Up: Exact answers}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

233
Misc/Warm-Ups/snake.tex Executable file
View 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}

View File

@ -9,7 +9,8 @@
\title{Warm-Up: Fuse Timers} \title{Warm-Up: Fuse Timers}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -6,7 +6,8 @@
\usepackage{../../resources/macros} \usepackage{../../resources/macros}
\title{Warm-Up: Travellers} \title{Warm-Up: Travellers}
\subtitle{Prepared by \githref{Mark} on \today} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today}
\begin{document} \begin{document}

View File

@ -40,7 +40,8 @@
% The player who makes a three in a row of Xs (or black chips) wins the game % The player who makes a three in a row of Xs (or black chips) wins the game
\title{Warm-Up: Big-Tac-Toe} \title{Warm-Up: Big-Tac-Toe}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -16,7 +16,8 @@
\title{Warm-Up: Wild Tic-Tac-Toe} \title{Warm-Up: Wild Tic-Tac-Toe}
\subtitle{Prepared by \githref{Mark} on \today.} \uptitler{\smallurl{}}
\subtitle{Prepared by Mark on \today.}
\begin{document} \begin{document}

View File

@ -7,7 +7,7 @@
% Link to this repo, used in titles % 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}}}