Skip to content

mcunhap/ttt.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe in Neovim - ttt.nvim

This is a simple Tic Tac Toe game written in Lua for Neovim.

Installation

You can install this plugin using your favorite plugin manager. For example, using lazyvim:

{ "mcunhap/ttt.nvim" }

Usage

You can start the game by running the following command:

:TTT

The game will be displayed in a new buffer. You can play by moving the cursor to the cell you want to mark and pressing Enter. To quit the game, press q or ESC.

The default configuration is to play against the computer with player 1 using x and player 2 o. You can change this by settings using setup function like this:

require('ttt').setup({
    player_1_symbol = '!',
    player_2_symbol = '?',

    play_against_computer = false,
})

About

Tic Tac Toe game neovim plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors