 One of the most commonly asked questions that I get is why do I use Emacs? People want to know what's the number one reason that I choose Emacs over something like Vim? Well, I think there's a lot of advantages to Emacs, but if I had to narrow it down to the number one reason why I choose Emacs, it's for the built-in games. So what games are available inside Emacs? Well, let me switch over to my browser and if I open up EmacsWiki.org and they have a category called games on the EmacsWiki and you can see they list a whole bunch of built-in games and Amusements so most of these programs should automatically be installed by default in Emacs and then you have a section of add-on games So these are third-party games that people have created that you can install and I may install one or two of the add-on games But I'm definitely gonna check out some of the built-in games So let me go ahead and switch over to my desktop and let me go ahead and open up Doom Emacs. Doom Emacs is the distribution of Emacs that I use and I'm gonna do alt-x meta-x on the keyboard and the command I'm gonna run is Tetris because Tetris is one of the games that is installed by default and the evil key bindings do work in Tetris So H and L move left and right if I do K, which should be up, but you can't move up in Tetris So that actually just rotates the pieces J of course moves down so just use HJKL the Vim navigation keys and Honestly Tetris works perfect in Emacs like I can waste Seriously, I can waste hours playing Tetris inside Emacs and I'm actually pretty good at Tetris like I'm not a terrible Tetris player I'm not saying I'm like the Tetris World Champ but you know I can beat most people like if You wanted to put some money on a Tetris game. You'd probably lose it if you were playing against me The next built-in game I want to show you if I do meta-x and type the word Pong and This does not use evil key bindings What you have to do is do meta-x and it will pause the game when you do meta-x and type the command evil dash mode What this does is it toggles evil mode on and off it's on right now if I toggle evil mode off now the arrow keys Will actually move so now let me do Pong Dash resume P would have done that so now You've got left and right moves one set of paddles and up and down Moves the other set so you can actually play Pong against yourself. I'm not very good at Pong Well, I'm pretty good at Tetris. You can see I'm really really bad at Pong and part of the problem Is it's kind of weird using the arrow keys, you know two arrow keys for one paddle and two arrow keys for the other I'm sure I could map that to something else if I wanted to wow that was a good save there Let's see if I can get up here and save that one. Yeah, not bad. So that is Ponged The next game that I want to briefly check out if I do meta-x and type bubbles This is bubbles and let's make sure that we turn off evil mode here as well inside bubbles If I navigate around you see the orange circles are actually bubbles And I can get rid of them and I can get rid of all the bubbles that are touching the one I'm currently on I think if I just hit space Yeah, and the trick here. I haven't played bubbles too much But I think the trick is to try to get rid of the bubbles in as few moves as possible. So Yeah, I'm not sure. I Say the orange was the bubbles. Maybe the purple was the bubbles because I can get rid of purple Just as easy as I can get rid of Yeah, I'm gonna have to read the documentation on bubbles Another cool little fun thing you can do you can do meta-x and type the word doctor and what is doctor think of doctor as a Psychiatrist so if I do space TB here inside do me max to toggle on big font mode so you guys can read what's going on He says I am the psychotherapist. Please describe your problems each time you're finished talking type return twice So please describe my problems. I am a Linux user is my problem and return twice. What makes you believe you are a Linux user? I use arch by the way Maybe your life has something to do with this You have a point Is it because of your plans that you say I have a point Yes, I See well, are you sure that this is so I don't know dude. I Am just really confused right now I'm considering moving to gen 2 Do you really think you're considering moving to gen 2? No I'm just venting Perhaps the people you hang around with have something to do with this Another cool little animation thing that's built into do me max at least is if I do meta x Animate dash birthday dash present and let's animate a birthday greeting for someone Let's animate a birthday present for DT and it's gonna say happy birthday DT You are my sunshine my only sunshine. I'm awful said that you've moved away Let's talk together and love more deeply. Please bring back my sunshine to stay Well, you are sweet do me max by the way. It's not my birthday actually had a birthday last week though I turned 44 last week Another cool thing you can do. Let me open up a document So I'm gonna just open up my doom config.org here What I'm gonna do is I'm gonna go to a section here So I'm gonna select this region of text if I do meta x and I type the word stud lofi dash region What is stud lofi? Well, let's see what it does It's dead lofies the text meaning we get this random uppercase lowercase Ridiculousness going on here So that is a great way to take a especially a rather large document that's actually formatted correctly and just really make it Almost unreadable. Let me you to undo that another neat little thing you can do if you do meta x and you type zone Let's see what happens the screen just when it's idle when I'm not doing anything what happens It's kind of changing on its own. It's doing all kinds of weird stuff as long as this buffer is kind of idle So that's a really neat effect if you're gonna step away from the keyboard for a little bit But you're gonna have this document open on the screen. It's kind of like a almost like a screensaver kind of effect It's like the matrix. That's like see matrix almost inside doom emacs So let's go ahead and try out one of the third-party add-on games if I go back to the emacs wiki One of the ones that immediately caught my eye because I was such a big fan of the old pekman arcade games There's one called pek max So what I'm gonna do is let me go ahead and install this inside doom emacs I've already got it installed But let me show you guys how I installed it if I do space period here to get into the file manager Let me go to packages dot e l And then my packages dot e l file for doom emacs. You can see I added package Exclamation pek max to the packages dot e l and then once you add that and you do a colon w to write it and do space Hrr inside doom emacs to reload your new doom emacs config It should install the pek max package for you and it should immediately be available for you to play So let me do meta x and do pek max Start pek max start now before we do that Let's turn off evil mode because I know pekman is not going to use the evil keybundings So I turned evil mode off first and then let's do pek max dash start And now it's going to use the arrow keys and let me go ahead and move around This pekman looks kind of funny. I wonder if it's because I toggled on big font mode So let me turn on evil mode one more time. Let me do space tb. Let's do Turn off evil mode and now let me do pekman start and then we fixed our font problems and now let me go ahead Yeah, this the game is running much smoothly now that I can actually see what I'm doing So the very first screen here, it's kind of like the beginner just so you guys can See what's going on here So it's just the four arrow keys and then the next one I should have a villain that I yeah now I've actually got to I've got to move around a little bit. I'm gonna wait and get the Well, I was gonna wait to get the blinking That he got me because I was trying to explain. Okay. Okay ghost. I got you. I got you ghost There you go. Okay. Now you're running. Well, I guess I didn't need to eat the ghost to To finish that well this and this ghost is smart like everywhere I go So that's pek max and of course, there's dozens of other games. You could actually install inside emacs I noticed they've got a 2048 game There's a tron game. There's a net hack game There's all kinds of stuff you can do inside emacs and this to be honest I was kind of joking when I sit the built-in games for the biggest reason I use emacs Obviously, that's not the case, but I've got to admit the built-in games are kind of a plus I mean emacs is kind of like its own environment unto itself It's almost like it's its own operating system and what's one of the most fundamental core pieces of an operating system It's the games, of course. Now before I go. I need to thank a few special people I need to thank the producers of the show Devon Gabe James Matt Michael Mitchell Paul Scott West Akami Allen Linux Ninja Chuck commander angry Kurt Diocai David Dylan Gregory Heiko Casca Lee Maxim Mike nitrix Erion Alexander peace arch and fedora polytech raver Rip profit Steven and Willie these guys. They're my highest tiered patrons over on patreon without these guys this episode about Emacs games it would not have been possible the shows brought to you by each and every one of these ladies and gentlemen as well All these names you're seeing on the screen right now These are all my supporters over on patreon because I don't have any corporate sponsors I mean what kind of corporate sponsor would sponsor a video about games inside emacs They wouldn't do it right you guys sponsored this stuff and you'd be like my work and want to help support me Please subscribe to distro to over on patreon. All right guys. Peace. I Wonder if super tux is available in emacs