My presentation of the prisoner's dilemma/game of life mashup.

presentation.tex 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. \documentclass{beamer}
  2. \title{Prisoner's Life}
  3. \author{Lily Carpenter}
  4. \institute{https://gitlab.com/azrazalea/}
  5. \date{\today}
  6. \mode<presentation> {\usetheme{Madrid}}
  7. \usepackage[english]{babel}
  8. \usepackage[latin1]{inputenc}
  9. \usepackage{times}
  10. \usepackage[T1]{fontenc}
  11. \usepackage{hyperref}
  12. \usepackage{listings}
  13. \usepackage{color}
  14. \usepackage{amsmath}
  15. \definecolor{comment}{rgb}{0,0.6,0}
  16. \definecolor{keyword}{rgb}{0,0,0.6}
  17. \definecolor{string}{rgb}{0.58,0,0.82}
  18. \lstset {
  19. backgroundcolor=\color{white},
  20. basicstyle=\tiny,
  21. keywordstyle=\color{keyword},
  22. commentstyle=\color{comment},
  23. showspaces=false,
  24. showstringspaces=false,
  25. showtabs=false,
  26. stringstyle=\color{string},
  27. tabsize=4
  28. }
  29. \newcommand{\chref}[3] {
  30. {\color{#1} \href{#2}{\underline{#3}}}
  31. }
  32. \newcommand{\cmd}[1]{
  33. \vspace{2mm}
  34. \fcolorbox{gray}{black}{\tt {\color{white} user@host\$ #1}}
  35. \vspace{2mm}\\
  36. }
  37. \begin{document}
  38. \begin{frame}
  39. \titlepage
  40. \end{frame}
  41. \section{Introduction}
  42. \begin{frame}
  43. \frametitle{What is Prisoner's Life?}
  44. Prisoner's Life is a mash-up of Prisoner's Dilemma and Conway's Game of Life.
  45. This was presented previously at Lambda Lounge, by Mario Aquino and Jessica Kerr.
  46. You can see the code for this project at: {\chref{darkgray}{https://gitlab.com/azrazalea/prisoners-life-clj}{Gitlab}}
  47. You can see these slides at: {\chref{darkgray}{https://gitlab.com/azrazalea/prisoners-life-presentation}{Gitlab}}
  48. \end{frame}
  49. \begin{frame}
  50. \frametitle{Rules of Prisoner's Life}
  51. \begin{itemize}
  52. \item {If no surrounding cell has cooperated with you this turn, you die.}
  53. \item {If your score is greater than the set reproduce score (currently 20 in my examples) then you reproduce.}
  54. \item {You use your strategy to interact with all surrounding cells. The result of this strategy compared to your neighbors' strategy determines how much score increases.}
  55. \end{itemize}
  56. \end{frame}
  57. \begin{frame}
  58. \frametitle{Prisoner's Life Strategies}
  59. A strategy either returns 0(cooperation) or 1(defection).
  60. The strategy can only make a decision based on previous moves of the opponent's strategy.
  61. Score increases are determined by these results.
  62. \end{frame}
  63. \begin{frame}
  64. \frametitle{Prisoner's Life Strategies}
  65. \begin{itemize}
  66. \item {If you cooperate and your opponent defects, you get 1 point while your opponent gets 5 points.}
  67. \item {If you defect while you opponent cooperates, you get 5 points while your opponent gets 1 point.}
  68. \item {If you and your opponent both cooperate, you both get 3 points.}
  69. \item {If you and your opponent both defect, you both get 1 point.}
  70. \end{itemize}
  71. \end{frame}
  72. \begin{frame}
  73. \frametitle{Default Strategies}
  74. \begin{itemize}
  75. \item {Chump strategy(*): Always cooperate.}
  76. \item {Mean strategy(!): Always defect.}
  77. \item {Tit-for-tat-strategy(\&): Do whatever your opponent did last.}
  78. \item {Grudge strategy(\^{}): Defect if your opponent has ever defected.}
  79. \end{itemize}
  80. \end{frame}
  81. \end{document}