Dashboard Temp Share Shortlinks Frames API

abh - HTMLify profile

files of /abh/learning/c/BPPL/Phase-3/tic-tac-toe/

Tic Tac Toe (C lang) /abh/learning/c/BPPL/Phase-3/tic-tac-toe/main.c
183 Views
0 Comments
#include <stdio.h>
#include <string.h>
#include "ttt.h"
#include "ui.h"

int main() {
char p1n[32], p2n[32], p1m, p2m;
ttt.c /abh/learning/c/BPPL/Phase-3/tic-tac-toe/ttt.c
161 Views
0 Comments
#include "ttt.h"
#include <string.h>
#include <stdlib.h>
#include <time.h>


TTT *TTT_init(const char* player1, const char
ttt.h /abh/learning/c/BPPL/Phase-3/tic-tac-toe/ttt.h
138 Views
0 Comments

#ifndef TTT_H
#define TTT_H

#include <stdbool.h>

typedef struct {
char state[9];
ui.c /abh/learning/c/BPPL/Phase-3/tic-tac-toe/ui.c
181 Views
0 Comments
#include <ncurses.h>
#include <locale.h>
#include <string.h>
#include "ttt.h"
#include "ui.h"

enum {
WHITE,
ui.h /abh/learning/c/BPPL/Phase-3/tic-tac-toe/ui.h
130 Views
0 Comments
#ifndef UI_H
#define UI_H

#include "ttt.h"

void draw_mark(int pos, char mark);

void draw_game(TTT *);