training

Code I wrote during training
git clone git://git.bitsmanent.org/training
Log | Files | Refs | README

commit 350e7e81e5b7738f5fa2c0f7084afca6cab4f6a0
parent a24a07e5b323298765f6fd9c6ab4e96b28b713c1
Author: Claudio <claudio@clabook.(none)>
Date:   Sat,  3 Nov 2012 09:54:48 +0100

Add start/end placeholder.

Diffstat:
Mkts.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/kts.c b/kts.c @@ -98,9 +98,12 @@ show(void) { printf("\n%2d", x); for(y = 0; y < 8; ++y) { if(board[x][y] == -1) - printf("%3c♞", ' '); + printf("%2cS♞", ' '); else if(board[x][y]) - printf("%4.2d", board[x][y]); + if(x == y && x == 7) + printf("%2cE♞", ' '); + else + printf("%4.2d", board[x][y]); else printf("%4c", '.'); }