Click here to Skip to main content
15,867,885 members
Articles / Programming Languages / C++
Article

Fun with the Matrix code and Markov chains

Rate me:
Please Sign up or sign in to vote.
4.72/5 (19 votes)
19 Dec 2001 179.1K   5.9K   51   19
Emulates the Matrix code (like Dozer's screens in the movie) and generates nonsense text via Markov chains

Sample Image - matrix.jpg

Disclaimer:

You must not search for any serious sense in this application. I did it only for fun.

Description

The "Just Matrix" application emulates the Matrix code (like Dozer's screens in the movie) and generates nonsense text via Markov chains.

The curious reader can find two main classes in the source code.

  • MatrixBlitter - in fact the class for the emulating of the Matrix code, but it can draw a streams of code in any colour :)
  • markov_chains - it uses a well-known algorithm for the generating of a nonsense text

The source code has no dependence on MFC or ATL only STL. You can freely use it in any application.

Feel free to contact me via email and send any questions and remarks. Have fun ;)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
I am freelance programmer. About 3 years of experience in C++ and I would rather use ATL, STL, WTL but not MFC Smile | :) . Main backgrounds are Win32 API, COM and Networking. Now I am interested about AI (Neural Network, Fuzzy Logic and GA). Currently based in Vladivostok, Russia.

Comments and Discussions

 
Generalim a noob.com Pin
cybr_sn@k322-Oct-08 9:18
cybr_sn@k322-Oct-08 9:18 
GeneralDisplaying In CMD Pin
Insignificant Spec4-Jan-05 1:16
Insignificant Spec4-Jan-05 1:16 
GeneralNot original, but pertty well :-) Pin
Anonymous14-Nov-03 3:46
Anonymous14-Nov-03 3:46 
QuestionSo What??? Pin
EmirPerez23-May-03 19:36
EmirPerez23-May-03 19:36 
Generalget the code to discuss Pin
Tu_fotech22-May-03 16:30
Tu_fotech22-May-03 16:30 
GeneralRe: get the code to discuss Pin
TomP25-May-03 19:39
TomP25-May-03 19:39 
GeneralRe: get the code to discuss Pin
kbsoftware20-Apr-05 19:19
kbsoftware20-Apr-05 19:19 
Questiondrawing past pane window? Pin
Ed Korsberg30-Dec-02 8:23
Ed Korsberg30-Dec-02 8:23 
GeneralThe link is broken Pin
Mehdi Mousavi20-Dec-01 9:43
Mehdi Mousavi20-Dec-01 9:43 
GeneralRe: The link is broken Pin
Konstantin Boukreev22-Dec-01 19:00
Konstantin Boukreev22-Dec-01 19:00 
GeneralCool, but not perfect Pin
Tim Kosse20-Dec-01 1:49
Tim Kosse20-Dec-01 1:49 
GeneralRe: Cool, but not perfect Pin
Henry Jacobs21-Dec-01 9:42
Henry Jacobs21-Dec-01 9:42 
GeneralRe: Cool, but not perfect Pin
Jason Hooper14-Jul-02 8:23
Jason Hooper14-Jul-02 8:23 
Henry Jacobs wrote:
glpyhs are in an Asian font

In fact, it's Japanese katakana, mirrored horizontally.

- Jason
(SonorkID 100.611)

In the beginning, teachers taught the 5 W's: who, what, where, when, why. Now it's just a big damn G
GeneralRe: Cool, but not perfect Pin
Thomas Willey17-Dec-02 9:29
Thomas Willey17-Dec-02 9:29 
GeneralRe: Cool, but not perfect Pin
Jason Hooper18-Dec-02 23:08
Jason Hooper18-Dec-02 23:08 
GeneralChange it to screen saver Pin
MoZ19-Dec-01 22:23
MoZ19-Dec-01 22:23 
GeneralRe: Change it to screen saver Pin
Konstantin Boukreev19-Dec-01 22:34
Konstantin Boukreev19-Dec-01 22:34 
GeneralRe: Change it to screen saver Pin
Anonymous5-Jun-03 10:13
Anonymous5-Jun-03 10:13 
GeneralRe: Change it to screen saver Pin
Anonymous29-Jun-03 1:56
Anonymous29-Jun-03 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.