Added: 10 months ago
From: Bisqwit
Views: 2,291
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (21)

Sign In or Sign Up now to post a comment!
  • 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 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.

  • 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 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 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 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.

  • 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 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!

  • @alexliang0627 Link to source code added in the video description.

  • @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

  • you where rushing at the end

  • @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.

  • cool song :D

  • The programming language is all Greek to me, but it's fascinating to watch a Tetris clone being programmed :)

  • Would LOVE the code for htis.

  • holy shit

  • Ad-hoc editor .. I like the name :)

    The program an the AI, looks great... ah only ~550 lines of code, hola!

  • @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.

  • Great job Bisqwit! You're awesome.

  • wow this is art, well made

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more