snake and ladder game
#include<stdio.h> #include<graphics.h> #include<conio.h> #include<malloc.h> #include<stdlib.h> #include<dos.h> #include<iostream.h> int k=1, i, user=0, dice=0, x1=50, y1=410, x2=70, y2=410, dir1=0, dir2=0, ch; int cnt1=1, cnt2=1; void *obj1, *obj2, *o1, *o2, *dot, *back, *turn, *ready; unsigned int size; void ladder1() { int m,n; for(m=0;m<=250;m+=250) for(n=0;n<=m;n+=250) { setcolor(DARKGRAY); line(53+m,57+n,55+m,55+n); line(53+m,57+n,133+m,137+n); line(55+m,55+n,135+m,135+n); line(133+m,137+n,135+m,135+n); setfillstyle(SOLID_FILL, YELLOW); floodfill(55+m,58+n,DARKGRAY); line(68+m,42+n,70+m,40+n); line(68+m,42+n,148+m,122+n); line(70+m,40+n,150+m,120+n); line(148+m,122+n,150+m,120+n); floodfill(70+m,43+n,DARKGRAY); line(65+m,65+n,78+m,52+n); line(68+m,68+n,81+m,55+n); floodfill(79+m,54+n,DARKGRAY); line(75+m,75+n,88+m,62+n); line(78+m,78+n,91+m,65+n); floodfil