@ahron123456 There is no re-recording program, nor savestates involved. I use DOSBox for making these videos. When you increase the cycle count in DOSBox, DOSBox appears to be running slower, but in fact only the emulation becomes slower. Video captures still run at normal speed. This allows the user to appear to do stuff quickly. I utilized that feature extensively in my first videos. Nowadays I use scripted input, with exact means varying from video to video.
@labobo I used Pierre Dellacherie's algorithm because it was the best Tetris AI that I could find example source code for. The co-routine macros are used to implement co-routines. With co-routines, it is possible for a timesharing algorithm to be written in a non-timesharing style (infinite loops etc.); a return can be issued from the middle of a function (in order to timeshare with other functions) without having to take care how to resume the same spot. See Tatham's coroutine page for details.
@labobo It is a programming paradigm in which two or more parts of a program can intercommunicate, or be interleaved while being written in a manner that normally is used for non-interleaved code.
@labobo Oh, and the general principle of the Tetris AI is this: The robot must decide where to put the piece. So it evaluates all rotations and all placements for the piece, choosing the one that looks "best", and maneuvers the piece there. The choice is made by scoring each location. The score is calculated by a formula which considers things such the number of transitions from block to hole and back, both vertically and horizontally, number of pieces eroded if block is placed there, and so on.
@alexliang0627 This video is a choreographed programming performance. The source code was designed and debugged beforehand to the smallest detail. Only the playing was impromptu. I will put the source code available for downloading some day soon. I am surprised to find that I forgot about it. Thanks for reporting!
@Bisqwit thank you for your effort , i start to study the codes , complie it sucessus under xp but the full version crash in my dosbox(under win7) , show case work fine there (just a few offset problem tetre Area is on the Left ).
after playing i find it's evil that the game pick difficult piece for me ..XD
@BadPotat0 Thanks. I created the editor for the other video I was supposed to publish a month ago, because I was unsatisfied with the features of Borland C++ IDE (mainly, BC IDE only supports 80 characters wide display modes). And having made it, I decided to use it here as well.
Hey , Friend , Can you tell me what is named the program you use to make these videos?
Like , what is the re-recording program?... Thx , waiting for a reply
ahron123456 1 day ago in playlist Recommended picks
@ahron123456 There is no re-recording program, nor savestates involved. I use DOSBox for making these videos. When you increase the cycle count in DOSBox, DOSBox appears to be running slower, but in fact only the emulation becomes slower. Video captures still run at normal speed. This allows the user to appear to do stuff quickly. I utilized that feature extensively in my first videos. Nowadays I use scripted input, with exact means varying from video to video.
Bisqwit 1 day ago
I was wondering why Pierre Dellacherie ai algorithm ?
What are those co-routine macros for ?
Now that i think about it, videos about ai programming would be nice.
Long time since i poked that area..
labobo 1 month ago
@labobo I used Pierre Dellacherie's algorithm because it was the best Tetris AI that I could find example source code for. The co-routine macros are used to implement co-routines. With co-routines, it is possible for a timesharing algorithm to be written in a non-timesharing style (infinite loops etc.); a return can be issued from the middle of a function (in order to timeshare with other functions) without having to take care how to resume the same spot. See Tatham's coroutine page for details.
Bisqwit 1 month ago
@Bisqwit Ok, I'll read Tatham's coroutine page after this comment. So co-routine macros are multi-threading for dos ?
I imagine using normal threads are better than co-routines.
labobo 1 month ago
@labobo It is a programming paradigm in which two or more parts of a program can intercommunicate, or be interleaved while being written in a manner that normally is used for non-interleaved code.
Bisqwit 1 month ago
@labobo Oh, and the general principle of the Tetris AI is this: The robot must decide where to put the piece. So it evaluates all rotations and all placements for the piece, choosing the one that looks "best", and maneuvers the piece there. The choice is made by scoring each location. The score is calculated by a formula which considers things such the number of transitions from block to hole and back, both vertically and horizontally, number of pieces eroded if block is placed there, and so on.
Bisqwit 1 month ago
can you put your code on server thank you .How can you write so fast without thinking??
and how can you do any debug on programming ?
alexliang0627 2 months ago
@alexliang0627 This video is a choreographed programming performance. The source code was designed and debugged beforehand to the smallest detail. Only the playing was impromptu. I will put the source code available for downloading some day soon. I am surprised to find that I forgot about it. Thanks for reporting!
Bisqwit 2 months ago
@alexliang0627 Link to source code added in the video description.
Bisqwit 1 month ago in playlist Programming
@Bisqwit thank you for your effort , i start to study the codes , complie it sucessus under xp but the full version crash in my dosbox(under win7) , show case work fine there (just a few offset problem tetre Area is on the Left ).
after playing i find it's evil that the game pick difficult piece for me ..XD
alexliang0627 1 month ago
you where rushing at the end
pghg022 2 months ago
@pghg022 The little playing I did in the end, you mean? Yeah I wanted to fit many pieces in the remaining length of the video.
Bisqwit 2 months ago
cool song :D
bleutn 3 months ago
The programming language is all Greek to me, but it's fascinating to watch a Tetris clone being programmed :)
novembre8211 4 months ago
Would LOVE the code for htis.
coffee115 4 months ago in playlist More videos from Bisqwit
holy shit
EvilNando 7 months ago
Ad-hoc editor .. I like the name :)
The program an the AI, looks great... ah only ~550 lines of code, hola!
BadPotat0 10 months ago
@BadPotat0 Thanks. I created the editor for the other video I was supposed to publish a month ago, because I was unsatisfied with the features of Borland C++ IDE (mainly, BC IDE only supports 80 characters wide display modes). And having made it, I decided to use it here as well.
Bisqwit 10 months ago
Great job Bisqwit! You're awesome.
Nahoc10 10 months ago
wow this is art, well made
son1cgu1tar 10 months ago