Description: Based the Tetris game dx9.0c, the algorithm is they want, and about 1500 lines of code.
To Search:
File list (Check if you may need any files):
3DTetris\3DTetris.vcxproj
........\3DTetris.vcxproj.user
........\3DTetris.vcxproj.filters
........\3DTetris.h
........\3DTetris.cpp
........\Debug\3DTetris.log
........\.....\3DTetris.lastbuildstate
........\.....\vc100.idb
........\.....\vc100.pdb
........\.....\CL.read.1.tlog
........\.....\CL.write.1.tlog
........\.....\CBlocks.obj
........\.....\3DTetris.exe.embed.manifest
........\.....\3DTetris_manifest.rc
........\.....\3DTetris.exe.embed.manifest.res
........\.....\Ccamera.obj
........\.....\3DTetris.obj
........\.....\rc.read.1.tlog
........\.....\rc.write.1.tlog
........\.....\link-cvtres.read.1.tlog
........\.....\link-cvtres.write.1.tlog
........\.....\3DTetris.exe.intermediate.manifest
........\.....\link.read.1.tlog
........\.....\link.write.1.tlog
........\.....\CTetris.obj
........\.....\CGameFace.obj
........\.....\d3dfont.obj
........\.....\mt.read.1.tlog
........\.....\mt.write.1.tlog
........\.....\CGameScence.obj
........\.....\link.5792-cvtres.read.1.tlog
........\.....\link.5792-cvtres.write.1.tlog
........\.....\link.4760-cvtres.read.1.tlog
........\.....\link.4760-cvtres.write.1.tlog
........\.....\link.4760.read.1.tlog
........\.....\link.4760.write.1.tlog
........\.....\link.5792.read.1.tlog
........\.....\link.5792.write.1.tlog
........\.....\link.3696-cvtres.read.1.tlog
........\.....\link.3696-cvtres.write.1.tlog
........\.....\link.3696.read.1.tlog
........\.....\link.2500-cvtres.read.1.tlog
........\.....\link.2500-cvtres.write.1.tlog
........\.....\link.2500.read.1.tlog
........\.....\link.2500.write.1.tlog
........\.....\link.3696.write.1.tlog
........\.....\3DTetris.res
........\.....\link.3360-cvtres.read.1.tlog
........\.....\link.5740-cvtres.read.1.tlog
........\.....\link.5740-cvtres.write.1.tlog
........\.....\link.5740.read.1.tlog
........\.....\link.5740.write.1.tlog
........\.....\link.3360-cvtres.write.1.tlog
........\.....\link.3360.read.1.tlog
........\.....\link.3360.write.1.tlog
........\.....\CSkyScene.obj
........\.....\Blocks.obj
........\.....\link.320-cvtres.read.1.tlog
........\.....\link.320-cvtres.write.1.tlog
........\.....\link.320.read.1.tlog
........\.....\link.320.write.1.tlog
........\.....\link.3640-cvtres.read.1.tlog
........\.....\link.3640-cvtres.write.1.tlog
........\.....\link.4064-cvtres.read.1.tlog
........\.....\link.4064-cvtres.write.1.tlog
........\.....\link.4064.read.1.tlog
........\.....\link.4064.write.1.tlog
........\.....\link.3640.read.1.tlog
........\.....\link.3640.write.1.tlog
........\.....\link.5288-cvtres.read.1.tlog
........\.....\link.5288-cvtres.write.1.tlog
........\.....\link.5288.read.1.tlog
........\.....\link.5288.write.1.tlog
........\.....\link.8164-cvtres.read.1.tlog
........\.....\link.8164-cvtres.write.1.tlog
........\.....\link.8164.read.1.tlog
........\.....\GameMain.obj
........\.....\link.2736-cvtres.read.1.tlog
........\.....\link.2736-cvtres.write.1.tlog
........\.....\link.2736.read.1.tlog
........\.....\link.2736.write.1.tlog
........\.....\link.8164.write.1.tlog
........\.....\link.3912-cvtres.read.1.tlog
........\.....\link.3912-cvtres.write.1.tlog
........\.....\link.6068-cvtres.read.1.tlog
........\.....\link.6068-cvtres.write.1.tlog
........\.....\link.6068.read.1.tlog
........\.....\link.6068.write.1.tlog
........\.....\link.3912.read.1.tlog
........\.....\link.3912.write.1.tlog
........\.....\link.5196-cvtres.read.1.tlog
........\.....\link.5196-cvtres.write.1.tlog
........\.....\link.5196.read.1.tlog
........\.....\link.5196.write.1.tlog
........\.....\link.1872-cvtres.read.1.tlog
........\.....\link.1872-cvtres.write.1.tlog
........\.....\link.1872.read.1.tlog
........\.....\link.1872.write.1.tlog
........\.....\link.3524-cvtres.read.1.tlog
........\.....\link.3524-cvtres.write.1.tlog