# CJam, 25 bytes

    6Zm*{$e`z}$q~:(a#6/6md+2+

This is a port of [my Jelly answer].

[Try it online!] or [simulate all 216 outcomes].

[Try it online!]: http://cjam.tryitonline.net/#code=NlptKnskZWB6fSRxfjooYSM2LzZtZCsyKw&input=WzEgMyA1XQ
[simulate all 216 outcomes]: http://cjam.tryitonline.net/#code=NlptKjokOjopOmAKW3sKICAgIDZabSp7JGVgen0kUX46KGEjNi82bWQrMisKfWZRXQokNi86cA&input=
[my Jelly answer]: http://codegolf.stackexchange.com/a/80223