Tetris

Check-in [e130331ce3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add random.c
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:e130331ce38f0fb32cc0491d2d9d9962c2094411053b9ccdbe7afd002ec626d7
User & Date: ajv-899-334-8894@vsta.org 2008-10-26 17:42:14
Context
2008-10-26
17:42
Factor out random number generator check-in: 12ab685ed3 user: ajv-899-334-8894@vsta.org tags: trunk
17:42
Add random.c check-in: e130331ce3 user: ajv-899-334-8894@vsta.org tags: trunk
17:41
Initial revision check-in: aede015603 user: ajv-899-334-8894@vsta.org tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.


1
2
3
4
5
6
7
8
9
10
11
12

CFLAGS=-Wall -g

OBJS=input.o scores.o screen.o shapes.o tetris.o
LIBS=-lncurses

tetris: $(OBJS)
	$(CC) $(CFLAGS) -o tetris $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS)
clobber: clean
	rm -f tetris
>
|

|









1
2
3
4
5
6
7
8
9
10
11
12
13
CFLAGS=-DURANDOM='"/dev/urandom"' -Wall -g
# CFLAGS=-Wall -g

OBJS=input.o scores.o screen.o shapes.o tetris.o random.o
LIBS=-lncurses

tetris: $(OBJS)
	$(CC) $(CFLAGS) -o tetris $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS)
clobber: clean
	rm -f tetris